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

Fix #1054: speedup runlength decoding #1055

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

helpmefindaname
Copy link

@helpmefindaname helpmefindaname commented Oct 23, 2024

Pull request

Speeds up the runlength decoding, by not allocating a new bytearray on each step, gaining huge speedups on large image streams.

Closes #1054

How Has This Been Tested?

I have run the example I've provided in the respective issue and tested it on an pdf that crashed our production server with an OutOfMemroy error.

Checklist

  • I have read CONTRIBUTING.md.
  • I have added a concise human-readable description of the change to CHANGELOG.md.
  • I have tested that this fix is effective or that this feature works.
  • I have added docstrings to newly created methods and classes. # no updates required
  • I have updated the README.md and the readthedocs documentation. Or verified that this is not necessary. # no updates required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runlength decoding allocates too much memory and is slow.
1 participant