-
Notifications
You must be signed in to change notification settings - Fork 215
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
Introduce new method for shallow copying image #85
Introduce new method for shallow copying image #85
Conversation
@TheZeroSlave Thanks a lot for the proposal. It looks good! I'm looking forward to those tests, we can run a benchmark before and after the change to mention the speedup in the changelog. You can find the latest benchmark here: https://github.com/anthonynsimon/bild/blob/master/benchmarks.txt And to run it just do |
@anthonynsimon hi, added unit-tests and ran benchmarks.
|
@anthonynsimon hi, i updated PR. how is it? |
Hey thanks a lot for adding the tests and benchmark! I’ll review it next week since I’m away from the laptop, but from a quick glance it looks like the bytes and allocations per operation have been reduced. That’s really promising! |
I compared the outputs locally with benchcmp and it looks pretty good. Up to 20% less allocations and 90% less bytes allocated. Seems like the ns/op metric varies a lot to be significant.
|
Hi.
I noticed there are many allocations in this library during operations.
We use it in our web service to resize images on the fly so i optimized it a little.
This is unfinished pull request without tests just to check the idea of optimization.