-
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
No border? #9
Comments
Hi, this is one of our codebase for practicing code optimization skills. The code of this repo is not optimized intentionally and it is super slow. I can really see you made an improvement to speed up a little bit. However, we have some highly optimized code in pull requests which you might be interested to have a look. For example, this is a optimized version and speed up the original code by hundreds times. |
@shawlleyw say:
Yes. But! My version doesn't use any Good luck. |
Yeah, I remember that I was not quite sure about how to deal with the border so I just dropped it. It didn't cause much trouble though. Still, it is better to also process the border. You made a point. Thanks! |
@shawlleyw say:
Despite "this", your implementation of BiCubic in C is one of the best on GitHub. 👍 Good luck. |
😂Thanks, I will update it later, processing the border but remaining calculating each single channel individually cause I want this codebase to be less efficient. And I'm going to close this issue now. You can also open a pull request to help us fix the border problem if you're interested😉. |
@shawlleyw say:
I think you can manage without me. :) |
Hi @shawlleyw .
Use "no border" variant:
PS: Lead time
*= 0.65
You variant:
time ./resize tree.jpg image height: 2434, width: 3314 resize to: 12170 x 16570 >>> resize image by 5x: 38610ms save image tree_5x.jpg real 0m44,045s user 0m43,800s sys 0m0,244s
My variant:
time ./resize tree.jpg tree_x5.jpg 5 image 3314 x 2434 resize to: 16570 x 12170 >>> resize image: 23882ms save image tree_x5.jpg real 0m29,393s user 0m29,070s sys 0m0,244s
The text was updated successfully, but these errors were encountered: