• Kevin Modzelewski's avatar
    Reduce allocations in a few places · 2153e8e3
    Kevin Modzelewski authored
    - Check for the allocation of empty tuples and just return the singleton
    - Try to avoid creating the kwargs dict since it might end up being empty
    - Let unicode-creation special case apply to all argument types
    - Fix type(obj) to be fast again (got superceded by a different special case)
    - Do fewer allocations in int()
    2153e8e3
objmodel.cpp 219 KB