Skip to content
  • Paul Sokolovsky's avatar
    py: Make id() return small int for the most common address space mapping. · 645582fe
    Paul Sokolovsky authored
    Many OSes/CPUs have affinity to put "user" data into lower half of address
    space. Take advantage of that and remap such addresses into full small int
    range (including negative part).
    
    If address is from upper half, long int will be used. Previously, small
    int was returned for lower quarter of address space, and upper quarter. For
    2 middle quarters, long int was used, which is clearly worse schedule than
    the above.
    645582fe