-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: align defaults with filecoin (#6)
Filecoin uses a different set of defaults for importing files which will be more performant for file transfers so use them. The increased `maxChildrenPerNode` means fewer levels in a DAG so the parallisation of DAG layer requests fetches more data and the increased chunk size means fewer siblings in a layer. Raw leaves removes some extra bytes from the leaf nodes.
- Loading branch information
1 parent
4332c4c
commit a6bd198
Showing
4 changed files
with
50 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const ONE_MEG = 1024 * 1024 | ||
|
||
export const largeFile = Uint8Array.from(new Array(490668).fill(0).map(() => Math.random() * 100)) | ||
export const largeFile = Uint8Array.from(new Array(ONE_MEG * 5).fill(0).map(() => Math.random() * 100)) | ||
|
||
export const smallFile = Uint8Array.from(new Array(13).fill(0).map(() => Math.random() * 100)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters