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

feature: Disable unused multithreading to improve performance #3670

Conversation

WojciechMazur
Copy link
Contributor

Enabled multithreading does impose additional runtime overhead. Following Java Memory Model can cost up to 20% of execution time - in one of benchmarks singlethreaded app finished in 1,8s with multihreading 2,4s. Lost of small scripts might not require MT support, detect and disable it to improve performance.

@WojciechMazur WojciechMazur force-pushed the feature/disable-unused-multithreading branch from 060e087 to e13d0ee Compare January 14, 2024 23:38
@WojciechMazur WojciechMazur merged commit 24bc79d into scala-native:main Jan 15, 2024
62 checks passed
@WojciechMazur WojciechMazur deleted the feature/disable-unused-multithreading branch January 15, 2024 09:47
WojciechMazur added a commit to WojciechMazur/scala-native that referenced this pull request Jan 24, 2024
…native#3670)

* Disable unused multithreading to improve performance
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.

None yet

2 participants