2 ms·
> It's actually one of the area where Python or JS can beat statically typed languages, they focused a lot into optimizing strings while statically typed langua
by throwaway894345 6y ago
> It's actually one of the area where Python or JS can beat statically typed languages, they focused a lot into optimizing strings while statically typed languages often leave that as an exercise to the reader.
I think this has more to do with writing the string handling functions in heavily-optimized C rather than in Python/JS than it does with memory tricks, but I'll happily accept correction.