@vltpkg/fast-split 0.0.0-0.1730239248325 → 0.0.0-0.1730724342581

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
- # `@vltpkg/fast-split`
1
+ ![fast-split](https://github.com/user-attachments/assets/0181afb7-0e03-41e6-b85c-2b5095b5d263)
2
2
 
3
- This is a very fast alternative to `String.split()`, which can be
4
- used to quickly parse a small-to-medium sized string by a given
5
- delimiter.
3
+ # @vltpkg/fast-split
6
4
 
7
- ## HOW FAST IS IT!?
5
+ This is a very fast alternative to `String.split()`, which can be used to quickly parse a small-to-medium sized string by a given delimiter.
8
6
 
9
- This is about 10% faster for splitting short strings by a short delimiter.
10
- When we have to walk the resulting list for any reason, or limit the number
11
- of items returned, it's an even bigger difference.
7
+ **[It's fast](#how-fast-is-it)**
8
+ ·
9
+ **[Usage](#usage)**
12
10
 
13
- 2024 M1 macbook pro, using node 20.11.0, v8 version 11.3.244.8-node.17
14
- Counts are operations per ms, splitting the string '1.2.3-asdf+foo' by the
15
- delimiter '.', transforms calling part.toUpperCase(), and limits at 2 items
11
+ ## How Fast Is It!?
12
+
13
+ This is about 10% faster for splitting short strings by a short delimiter. When we have to walk the resulting list for any reason, or limit the number of items returned, it's an even bigger difference.
14
+
15
+ 2024 M1 macbook pro, using node 20.11.0, v8 version 11.3.244.8-node.17 Counts are operations per ms, splitting the string '1.2.3-asdf+foo' by the delimiter '.', transforms calling part.toUpperCase(), and limits at 2 items
16
16
 
17
17
  ```
18
18
  split 10385.779
@@ -26,7 +26,7 @@ fastSplitEmptyCheck 11273.537
26
26
  fastSplitLimit 13257.948
27
27
  ```
28
28
 
29
- ## USAGE
29
+ ## Usage
30
30
 
31
31
  ```js
32
32
  import { fastSplit } from '@vltpkg/fast-split'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/fast-split",
3
3
  "description": "A fast way to split small-to-medium sized strings by small string delimiters",
4
- "version": "0.0.0-0.1730239248325",
4
+ "version": "0.0.0-0.1730724342581",
5
5
  "tshy": {
6
6
  "selfLink": false,
7
7
  "dialects": [