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

Overload of factory methods and constructors in Encoders and Streams, to... #38

Merged
merged 1 commit into from Jul 14, 2014
Merged

Overload of factory methods and constructors in Encoders and Streams, to... #38

merged 1 commit into from Jul 14, 2014

Conversation

serverperformance
Copy link

... allow specifying a concrete BufferRecycler instance, as an alternative to the default ThreadLocal soft-references policy.

The change does not break compatibility with existing API, but adds flexibility for resource-eficiency if used from pools (different threads could reuse the same BufferRecycler instances, avoiding the creation of instances on a per Thread basis) and some minor performance gain in preexistent LZFOutputStream constructors (because ThreadLocal is only accessed once).

… to allow specifying a concrete BufferRecycler instance, as an alternative to the default ThreadLocal soft-references policy.

The change does not break compatibility with existing API, but adds flexibility for resource-eficiency if used from pools (different threads could reuse the same BufferRecycler instances, avoiding the creation of instances on a per Thread basis) and some minor performance gain in preexistent LZFOutputStream constructors (because ThreadLocal is only accessed once).
@cowtowncoder
Copy link
Contributor

Makes sense, looks good to me. Thank you for this contribution; I'll merge it in a minute.

cowtowncoder added a commit that referenced this pull request Jul 14, 2014
Overload of factory methods and constructors in Encoders and Streams, to...
@cowtowncoder cowtowncoder merged commit 3c249c5 into ning:master Jul 14, 2014
cowtowncoder added a commit that referenced this pull request Jul 14, 2014
@serverperformance
Copy link
Author

Thank to you for this great library!

-----Original Message-----
From: Tatu Saloranta notifications@github.com
Date: Sun, 13 Jul 2014 20:29:54
To: ning/compresscompress@noreply.github.com
Reply-To: ning/compress reply@reply.github.com
Cc: Tumiserverperformance@gmail.com
Subject: Re: [compress] Overload of factory methods and constructors in
Encoders and Streams, to... (#38)

Makes sense, looks good to me. Thank you for this contribution; I'll merge it in a minute.


Reply to this email directly or view it on GitHub:
#38 (comment)

@cowtowncoder
Copy link
Contributor

@serverperformance Thank you once again for the contribution!

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.

None yet

2 participants