-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: iteration function without allocation #28
Comments
I have heard of this technique referred to as "bring your own buffer"...It may be possible to do this. Do you have significant evidence of the performance degradation? I can see you are using scale: 1 so that would probably be intensive across the whole length of a chromosome. You could consider using one of the other reductionLevels to make this involve less data, probably would be faster, but if you require the lowest scale then I can see that would be resource intensive. |
Yes, we indeed require to use |
I'll just ask a couple more questions
|
The purpose is compatibility with https://github.com/romgrk/node-loompy ? so it keeps it all in the js ecosystem? |
Yes, we're using that module that we wrote to keep it all in JS. For your points:
|
Hey,
So for performance reasons would it be possible to implement an API that doesn't allocate an object for each entry? It could look something like this:
The text was updated successfully, but these errors were encountered: