This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
store.has is a bottleneck #1788
Labels
exp/wizard
Extensive knowledge (implications, ramifications) required
P2
Medium: Good to have, but can wait until someone steps up
Comments
Note that another call to |
As an outsider do you have any references to the "simple buffer list utility" I can read? Is it something like |
Yes exactly. However we did some further analysis, and BL should be low-level enough even if it’s stream-like. |
I'm a fan of bl, added some features, but it's not too much to fork and drop the event emitter. I don't mind maintaining that if we could use it. |
@reconbot we have validated that instantiating BL do not influence the performance of ipfs |
alanshaw
added
exp/wizard
Extensive knowledge (implications, ramifications) required
status/ready
Ready to be worked
P2
Medium: Good to have, but can wait until someone steps up
labels
Jan 18, 2019
Cool, I wasn't sure 👍
|
alanshaw
pushed a commit
to multiformats/js-cid
that referenced
this issue
Feb 7, 2019
refs ipfs/js-ipfs#1788 License: MIT Signed-off-by: Alan Shaw <[email protected]>
vmx
pushed a commit
to multiformats/js-cid
that referenced
this issue
Mar 12, 2019
refs ipfs/js-ipfs#1788 License: MIT Signed-off-by: Alan Shaw <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
exp/wizard
Extensive knowledge (implications, ramifications) required
P2
Medium: Good to have, but can wait until someone steps up
It seems that
store.has
(js-ipfs/node_modules/ipfs-repo/src/blockstore.js) is a bottleneck. This method in itself is ok, but thecids
dependency allocates several unneeded buffers (https://github.com/multiformats/js-cid/blob/22504757cead5e3213d6fd4a385ab546885debe8/src/index.js#L129).The above was generated with
My recommendations are:
The text was updated successfully, but these errors were encountered: