-
-
Notifications
You must be signed in to change notification settings - Fork 32k
JIT: Use pthread_jit_write_protect_np on macOS #126195
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
Labels
OS-mac
performance
Performance or resource usage
topic-JIT
type-feature
A feature request or enhancement
Comments
diegorusso
added a commit
to diegorusso/cpython
that referenced
this issue
Oct 30, 2024
Replace mprotect with pthread_jit_write_protect_np on MacOS Apple Silicon. Improve JIT performance by ~1.4% on this platform.
diegorusso
added a commit
to diegorusso/cpython
that referenced
this issue
Oct 30, 2024
Replace mprotect with pthread_jit_write_protect_np on MacOS Apple Silicon. Improve JIT performance by ~1.4% on this platform.
diegorusso
added a commit
to diegorusso/cpython
that referenced
this issue
Nov 8, 2024
Replace mprotect with pthread_jit_write_protect_np on MacOS Apple Silicon. Improve JIT performance by ~1.4% on this platform.
brandtbucher
pushed a commit
that referenced
this issue
Nov 12, 2024
I'll leave this open in case we want to explore the |
picnixz
pushed a commit
to picnixz/cpython
that referenced
this issue
Dec 8, 2024
ebonnal
pushed a commit
to ebonnal/cpython
that referenced
this issue
Jan 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
OS-mac
performance
Performance or resource usage
topic-JIT
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
The proposal is an internal implementation of the JIT and it transparent to the user.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
Not on Discourse, I've had extensive discussion about this with @brandtbucher and created a prototype that we benchmarked using the faster-cpython infrastructure. The full results are here: https://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20241018-3.14.0a1+-f74cd79-JIT
On macOS on Apple Silicon there is an overall 1.4% speed improvement by replacing the
mprotect
withpthread_jit_write_protect_np
.Linked PRs
The text was updated successfully, but these errors were encountered: