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

optimize memory usage for OleStream #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NiuBlibing
Copy link

OleStream used list to store the reading block and convert it to bytes by join, this method cause more memory useage and may more memory pool usage.
This patch optimizes it by directly writing data to super BytesIO's buffer.

OleStream used list to store the reading block and convert it to
bytes by join, this method cause more memory useage and may more
memory pool usage.
This patch optimizes it by directly writing data to super BytesIO's
buffer.
@decalage2 decalage2 self-requested a review January 26, 2025 20:53
@decalage2 decalage2 self-assigned this Jan 26, 2025
@decalage2 decalage2 added this to the olefile 0.50 milestone Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants