You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
js counterpart to ipfs/kubo#8114
Changes the `shardSplitThreshold` parameter to mean the size of the final DAGNode (including link names, sizes, etc) instead of the number of entries in the directory.
Fixes: #149
BREAKING CHANGE: the `shardSplitThreshold` option has changed to `shardSplitThresholdBytes` and reflects a DAGNode size where sharding might kick in
Copy file name to clipboardExpand all lines: packages/ipfs-unixfs-importer/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ The input's file paths and directory structure will be preserved in the [`dag-pb
120
120
`options` is an JavaScript option that might include the following keys:
121
121
122
122
-`wrapWithDirectory` (boolean, defaults to false): if true, a wrapping node will be created
123
-
-`shardSplitThreshold` (positive integer, defaults to 1000): the number of directory entries above which we decide to use a sharding directory builder (instead of the default flat one)
123
+
-`shardSplitThresholdBytes` (positive integer, defaults to 256KiB): if the serialized node is larger than this it might be converted to a HAMT sharded directory
124
124
-`chunker` (string, defaults to `"fixed"`): the chunking strategy. Supports:
0 commit comments