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

[C#] Add static option to unpin objects when returning to SectorAlignedMemoryPool #606

Merged
merged 13 commits into from
Dec 8, 2021

Conversation

badrishc
Copy link
Contributor

@badrishc badrishc commented Dec 1, 2021

To enable, do this at program entry point:

SectorAlignedBufferPool.UnpinOnReturn = true;

@badrishc
Copy link
Contributor Author

badrishc commented Dec 1, 2021

Closing for now, we will revisit this option in future.

@badrishc badrishc closed this Dec 1, 2021
@badrishc badrishc reopened this Dec 7, 2021
@badrishc
Copy link
Contributor Author

badrishc commented Dec 7, 2021

Reopening as we found this setting allows better GC behavior and possibly improved CPU/throughput in some scenarios. It will still be turned off as default for now.

@badrishc badrishc merged commit 92ae4af into master Dec 8, 2021
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