8 points | by g0xA52A2A 4 days ago ago
2 comments
So, it's like converting to symbols in lisps. EQ on symbols is also a single word comparison.
An interesting part is where you want to have maps from these.
Common python strings are interned to speed things up as well. Maybe this way of interning could benefit cpython.
So, it's like converting to symbols in lisps. EQ on symbols is also a single word comparison.
An interesting part is where you want to have maps from these.
Common python strings are interned to speed things up as well. Maybe this way of interning could benefit cpython.