You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The approach is similar to #20552, which added a fast inlined
implementation of bytes get item. However, we do it for `ord(str[n])`
instead of just `str[n]`, since the latter produces a reference-counted
string of length 1, which is often too slow for performance-critical
code. Later on the idea is to add a string writer class that supports
quickly appending unicode code points represented as integers.
This makes a micro-benchmark that finds the highest unicode code point
in a string about 18x faster.
0 commit comments