Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

builtin.c

  • Paul Sokolovsky's avatar
    645582fe
    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
    History
    py: Make id() return small int for the most common address space mapping.
    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.