r/pythontips • u/yangzhou1993 • May 10 '21
Syntax String Interning in Python: A Hidden Gem That Makes Your Code Faster
I didn't know this mechanism for the first time of using Python. But when I found it, I think it's really a hidden gem to speed up string comparisons.
Full article:
String Interning in Python: A Hidden Gem That Makes Your Code Faster
87
Upvotes
2
1
1
1
3
u/K3ystr0k3 May 11 '21
Jesus, this is brilliant.