-
Notifications
You must be signed in to change notification settings - Fork 7
remove extra allocations (Buffer.concat usage) #4
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
Conversation
|
This is now 1:1 with |
|
I see what you wanted, but yes, I wanted that |
|
because this I used |
|
@fanatid but we don't do that for Also, you didn't add a test for that 😃 |
|
sorry, my fault with tests... (I only removed and fixed existed) |
|
after |
|
@fanatid in short, you wanted You could easily modify your buffer pre- |
|
but should developer which uses |
|
@fanatid true, but developers that use this won't be feeding it signatures that have extraneous zeros unless they are making those themselves, in which case, I'd expect them to know what they're doing. The change would also block a developer from being able to use |
|
agreed, thanks |
@fanatid not the cleanest, but, it removes all the extra allocations :)