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
This is a trivial enhancement of the ascii_decode function in unicodeobject.c. By using memcpy on unaligned pointers, the compiler will use unaligned loads on platforms that support it. Most platforms do.
Currently the ascii_decode function looks very byzantine. By writing it slightly differently using memcpy, lots of lines can be removed while also becoming more readable in my opinion.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Activity
vstinner commentedon Sep 11, 2024
I close the issue since the PR was closed: #123895