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 for interned string compares #35491
Comments
This patch adds a fast-path for comparing equality of interned strings. The patch boosts performance for comparing identical string objects More infos and benchmarks later... |
Logged In: YES Output from pybench comparing today's CVS Python with patch (eqpython) and without patch (stdpython): PYBENCH 1.0 Benchmark: eqpython.bench (rounds=10, warp=20) Tests: per run per oper. diff *)
^^^^^^^^^^^^^^^^^^^^ This is the interesting line :-) ^^^^^^^^^^^^^^^^^^^^^^^^^^
------------------------------------------------------------------------ *) measured against: stdpython.bench (rounds=10, warp=20) As you can see, the rest of the results don't change much and the |
Logged In: YES Attached is an updated version of this patch. I'm -0 on it |
Logged In: YES Is there any progress on this patch, or should it be |
Logged In: YES I still consider the patch worth adding. The application space |
Logged In: YES It seems to me that the whole status of interned strings is Besides, in the use case you describe, you can compare I'd vote against it, but if the patch is accepted don't |
Logged In: YES Marc, as Armin suggests, why is it that you can't use "is" in I'm inclined to reject this patch. While it gives a significant I have to note too that the measured 21% speedup on a |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: