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

Mac: Use strtod_l() only in Manager. Use strtod() in client, etc. #5279

Merged
merged 1 commit into from Jun 21, 2023

Conversation

CharlieFenton
Copy link
Contributor

Fixes #5249, #5211

PR #5211 implemented a workaround for MacOS 13.3.1 having apparently broken the per-thread locale API useloclae(), by using the strtod_l() function instead of strtod(). This change was needed only in the Manager (since the client doesn't use a separate RPC thread), but the changes were in lib/parse.cpp and lib/parse.h which are used by the BOINC client as well as the BOINC Manager (and also other components of BOINC.)

While my tests indicate that strtod_l() actually takes less CPU time than strtod() on the M1 Mac, this PR lists the use of strtod_l() to BIONC Manager just in case its use in the client might contribute to the long task CPU times reported in issue #5249.

@CharlieFenton
Copy link
Contributor Author

This PR can be merged as soon as CI checks pass.

@AenBleidd AenBleidd added this to Backlog in BOINC Client/Manager via automation Jun 21, 2023
@AenBleidd AenBleidd added this to the Client/Manager 7.24.0 milestone Jun 21, 2023
@AenBleidd AenBleidd merged commit 15d0db1 into master Jun 21, 2023
41 checks passed
BOINC Client/Manager automation moved this from Backlog to Merged Jun 21, 2023
@CharlieFenton CharlieFenton deleted the mac_update_to_PR_5211 branch June 23, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Newest version of BOINC 7.20.7 slows down processing of tasks
2 participants