• Kevin Modzelewski's avatar
    Inline things into _PyUnicode_New · 7ea2c6f9
    Kevin Modzelewski authored
    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.
    7ea2c6f9
unicode_split_ubench.py 95 Bytes