Inline things into _PyUnicode_New
Inlining the allocation + object initialization saves a decent amount of overhead, since most of the properties will be fixed. For example, the size of the main allocation is fixed, so we can directly allocate it from the correct SmallArena bucket. We can also skip all the indirect function calls.
Showing
Please register or sign in to comment