Skip to content

This introduces a new option to forcefully disable threads for people who also want them enabled #995

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

Merged
merged 2 commits into from
Jun 26, 2020

Conversation

lemire
Copy link
Member

@lemire lemire commented Jun 26, 2020

Some people want to compile simdjson with thread support, and yet they do not want simdjson to use threads. There is no runtime way to do this right now. This PR introduces a compile-time "overwrite" option (SIMDJSON_DO_NOT_USE_THREADS_NO_MATTER_WHAT) that would overwrite thread support and prevent simdjson from using threads, even if it is compiled with thread support.

This a temporary compile-time option. I expect that we will offer runtime control in the future.

Fixes #988

@lemire lemire added this to the 0.4.1 milestone Jun 26, 2020
Copy link
Member

@jkeiser jkeiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL, looks good (for a temporary measure :))

@lemire lemire merged commit 13e1794 into master Jun 26, 2020
@lemire lemire deleted the dlemire/issue988 branch June 26, 2020 22:37
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.

Can't disable multithreading in parse_many after compiling simdjson with thread support
2 participants