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

Thread-safety: disable internal storage by default #43

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

timholy
Copy link
Member

@timholy timholy commented Dec 19, 2023

The README now describes optimizations and the issues they cause for thread-safety. The constructor now defaults to avoiding these optimizations, but allows them to be turned on with allocatetmp=true.

The README now describes optimizations and issues
they cause for thread-safety. The constructor now
allows one to disable these optimization by passing
`allocatetmp=false`.
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8eb0ed4) 99.50% compared to head (0b682a2) 99.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
+ Coverage   99.50%   99.52%   +0.01%     
==========================================
  Files           4        4              
  Lines         204      212       +8     
==========================================
+ Hits          203      211       +8     
  Misses          1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Better to be safe than optimized
@timholy timholy changed the title Thread-safety: allow disabling storage Thread-safety: disable internal storage by default Dec 19, 2023
@timholy timholy merged commit 8c0037e into master Dec 19, 2023
4 checks passed
@timholy timholy deleted the teh/thread_safety branch December 19, 2023 14:08
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