Re: Interned Strings

2006-01-10 Thread Martin v. Löwis
o find the potential dictionary slot in the first place. > Also, there is a global interning dictionary that > keeps interned strings. What I don't understand is why > strings are interned. How does it help with string > comparisons? Why you look up a dictionary entry, this hap

Interned Strings

2006-01-10 Thread Dave
need to be compared, only their cached keys are compared, which improves performance as there is no need for byte by byte comparison. Also, there is a global interning dictionary that keeps interned strings. What I don't understand is why strings are interned. How does it help with string compa