-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
Audit if we can use PyO3's new interning of PyString
#15007
Comments
I did a little bit of digging here and found that A quick search of the code yielded a few spots that this could be used: pants/src/rust/engine/src/externs/fs.rs Lines 211 to 220 in 020f8da
However with my limited understanding of I think it can also be used in many of the e.g.
|
cc @stuhood , any thoughts? |
We already do some rust-side interning internally in But interning entire file paths as in One thing to study would be the output of https://www.pantsbuild.org/v2.15/docs/reference-stats#memory_summary, to see if there are any large Python objects which could be made smaller. Here is some recent output: https://gist.github.com/stuhood/949078e32309b94bd14c905719483404 Nothing jumps out at me immediately though =/ |
See PyO3/pyo3#2269 for how it works. We should check if there are places we can use this.
The text was updated successfully, but these errors were encountered: