Skip to content
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

Improve the performance of pack_codes_into_bytes() - test_insert_jpg_lzwdecode #1380

Open
Lucas-C opened this issue Mar 3, 2025 · 0 comments
Labels
enhancement good first issue hacktoberfest performance research needed too complicated to implement without careful study of official specifications up-for-grabs

Comments

@Lucas-C
Copy link
Member

Lucas-C commented Mar 3, 2025

Quoting: #1286 (comment)

I noticed today that the unit test test_insert_jpg_lzwdecode is quite slow to execute: ~78s on my computer.

And 90% of this execution is spent in pack_codes_into_bytes() based on this quick test:

pip install pytest-profiling
pytest test/image/image_types/test_insert_images.py -k lzwdecode --profile

We should make this code faster.

@Lucas-C Lucas-C added research needed too complicated to implement without careful study of official specifications hacktoberfest labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue hacktoberfest performance research needed too complicated to implement without careful study of official specifications up-for-grabs
Projects
None yet
Development

No branches or pull requests

1 participant