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
Feature or enhancement
Proposal:
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
Links to previous discussion of this feature:
Linked PRs
The text was updated successfully, but these errors were encountered: