Skip to content

Conversation

StableAgOH
Copy link

Fix #1845.

@StableAgOH
Copy link
Author

@an-tao CI was passed in my repository. Request for re-run.

@an-tao an-tao requested a review from marty1885 May 10, 2025 12:56
@marty1885
Copy link
Member

@StableAgOH Can you benchmark the performance difference? The reason for thread_local was to buffer some randomness generated from the random API. Random can have a high overhead per call. thread_local allows extra randomness be reused. (static does not work as the random function must be thread safe)

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.

Does not build as shared library
2 participants