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
{{ message }}
This repository was archived by the owner on Apr 29, 2020. It is now read-only.
Adds two new options:
`fileImportConcurrency`
This controls the number of files that are imported concurrently.
You may wish to set this high if you are importing lots of small
files.
`blockWriteConcurrency`
This controls how many blocks from each file we write to disk at
the same time. Setting this high when writing large files will
significantly increase import speed, though having it high when
`fileImportConcurrency` is also high can swamp the process.
It also:
1. Flattens module options because validating deep objects was
clunky and the separation of access to config sub objects within
this module isn't very good
1. Replaces `superstruct` and `deep-extend` with `merge-options`
which is better suited for merging options and is smaller`
1. Replaces `async-iterator-*` modules with the more zeitgeisty
`it-*` namespace
Supersedes #38, sort of.
-`blockWriteConcurrency` (positive integer, defaults to num cpus x5) How many blocks to hash and write to the block store concurrently
135
135
-`maxChildrenPerNode` (positive integer, defaults to `174`): the maximum children per node for the `balanced` and `trickle` DAG builder strategies
136
136
-`layerRepeat` (positive integer, defaults to 4): (only applicable to the `trickle` DAG builder strategy). The maximum repetition of parent nodes for each layer of the tree.
137
137
-`reduceSingleLeafToSelf` (boolean, defaults to `true`): optimization for, when reducing a set of nodes with one node, reduce it to that node.
@@ -144,6 +144,7 @@ The input's file paths and directory structure will be preserved in the [`dag-pb
144
144
-`cidVersion` (integer, default 0): the CID version to use when storing the data (storage keys are based on the CID, _including_ it's version)
145
145
-`rawLeaves` (boolean, defaults to false): When a file would span multiple DAGNodes, if this is true the leaf nodes will not be wrapped in `UnixFS` protobufs and will instead contain the raw file bytes
146
146
-`leafType` (string, defaults to `'file'`) what type of UnixFS node leaves should be - can be `'file'` or `'raw'` (ignored when `rawLeaves` is `true`)
147
+
-`fileImportConcurrency` (number, defaults to num cpus) How many files to import concurrently
0 commit comments