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

Store the CompressOptions struct on the stack #1

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

Conversation

carlhoerberg
Copy link

WHY are these changes introduced?

Optimization and clarity

WHAT is this pull request doing?

Instead of having an instance variable for CompressOptions it's now put on the stack. The struct is as of current version only used to indicate if the buffer passed to compress_update is stable (is there for the next call to compress_update, or not). flush and compress_end does not use the struct as of today, so nil can be passed instead.

HOW can this pull request be tested?

specs

Instead of having an instance variable for CompressOptions it's now put
on the stack. The struct is as of current version only used to indicate
if the buffer passed to compress_update is stable (is there for the next
call to compress_update, or not). flush and compress_end does not use
the struct as of today, so nil can be passed instead.
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.

1 participant