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.
Copy file name to clipboardExpand all lines: README.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -124,10 +124,9 @@ The input's file paths and directory structure will be preserved in the [`dag-pb
124
124
-`chunker` (string, defaults to `"fixed"`): the chunking strategy. Supports:
125
125
-`fixed`
126
126
-`rabin`
127
-
-`chunkerOptions` (object, optional): the options for the chunker. Defaults to an object with the following properties:
128
-
-`avgChunkSize` (positive integer, defaults to `262144`): the average chunk size (rabin chunker only)
129
-
-`minChunkSize` (positive integer): the minimum chunk size (rabin chunker only)
130
-
-`maxChunkSize` (positive integer, defaults to `262144`): the maximum chunk size
127
+
-`avgChunkSize` (positive integer, defaults to `262144`): the average chunk size (rabin chunker only)
128
+
-`minChunkSize` (positive integer): the minimum chunk size (rabin chunker only)
129
+
-`maxChunkSize` (positive integer, defaults to `262144`): the maximum chunk size
131
130
-`strategy` (string, defaults to `"balanced"`): the DAG builder strategy name. Supports:
132
131
-`flat`: flat list of chunks
133
132
-`balanced`: builds a balanced tree
@@ -144,6 +143,8 @@ The input's file paths and directory structure will be preserved in the [`dag-pb
144
143
-`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
144
-`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
145
-`leafType` (string, defaults to `'file'`) what type of UnixFS node leaves should be - can be `'file'` or `'raw'` (ignored when `rawLeaves` is `true`)
146
+
-`blockWriteConcurrency` (positive integer, defaults to 10) How many blocks to hash and write to the block store concurrently. For small numbers of large files this should be high (e.g. 50).
147
+
-`fileImportConcurrency` (number, defaults to 50) How many files to import concurrently. For large numbers of small files this should be high (e.g. 50).
0 commit comments