| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@picnixz @rruuaanng @ZeroIntensity: I addressed your comments. Please review the updated PR. |
Sorry, something went wrong.
There was a problem hiding this comment.
Final nitpick but you can ignore it (I don't know whether it's that useful).
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you! LGTM.
Sorry, something went wrong.
|
Maybe you are right, But you can consider my suggestion. |
Sorry, something went wrong.
|
I created capi-workgroup/decisions#43 issue in the C API Working Group. |
Sorry, something went wrong.
|
I wrote a microbenchmark comparing equal strings of 10 characters: Results on Fedora 40 with CPU isolation:
Proposed public PyUnicode_Equal() is 1.2x faster than PyUnicode_Compare() (-2.0 ns) and 1.3x faster than PyUnicode_RichCompare() (-3.1 ns). Private _PyUnicode_EQ() and private _PyUnicode_Equal() are not exactly the same implementation, it seems like private _PyUnicode_Equal() is a little bit faster (1 ns!). |
Sorry, something went wrong.
|
Microbenchmark on comparison of inequal strings of 10 characters, only the last character is different.
|
Sorry, something went wrong.
The C API Working Group approved the API. |
Sorry, something went wrong.
|
Merged. Thanks for reviews @picnixz and @ZeroIntensity. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
📚 Documentation preview 📚: https://cpython-previews--124504.org.readthedocs.build/