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

Fast-path cache line detection via sys prop #370

Open
franz1981 opened this issue Nov 12, 2024 · 1 comment
Open

Fast-path cache line detection via sys prop #370

franz1981 opened this issue Nov 12, 2024 · 1 comment
Assignees

Comments

@franz1981
Copy link
Contributor

Detecting cache line can be memory and cpu intensive as it is now, involving reading (in-memory) files (in linux) or spawing new processes (on MacOS): in JCTools we save all of this via https://github.com/JCTools/JCTools/blob/a17b56f09cc9ec7d773707578c89f3ca9c11f968/jctools-core/src/main/java/org/jctools/util/PortableJvmInfo.java#L21

  1. having a sys prop allow users which support specific archs to save these checks to ever be performed
  2. some of these things doesn't change by long time for most architectures
@franz1981
Copy link
Contributor Author

@radcortez you can add more data about why is costy here, if you wish

@radcortez radcortez self-assigned this Nov 13, 2024
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

No branches or pull requests

2 participants