-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Speed up converter texture packing with Cython #1671
Speed up converter texture packing with Cython #1671
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey looks good for now. I think you got the basics of Cython right. What would be your next steps?
Is there anything that I could improve?
I'll try to make the additional optimizations |
@fabiobarkoski I think from a perspective of cythonization of the members and variables, the code is already pretty optimized. We now can only gain more speed with design changes to the code. I think that this idea from the issue might be worth a try:
The idea here being is that |
6fefdb4
to
e227a43
Compare
I'll start the review now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already pretty good, I just had a few ideas for the code and extra C++ types.
060817f
to
ea3ccac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, the imports are the last thing that needs changing.
51925f1
to
b5aef1b
Compare
b5aef1b
to
ceefb23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a tiny change myself after testing locally. Well done!
cythonized more the texture packing, also changed the list passed to factor(), before was a list of frame objects, now a list of only width, height and index of the frames.
ceefb23
to
e04eafa
Compare
Improve texture converter performance with Cython
resolve: #1371