4 ms·
And then you have to either re-train them to use string cursors or you have lots of people writing inefficient string code.
by bjoli 7y ago
And then you have to either re-train them to use string cursors or you have lots of people writing inefficient string code.
- heinrich5991 7y agoNot really, no. PyPy demonstrates that.
- bjoli 7y agoSure it does. Where CPython does byte inflation to make sure random access works, PyPy makes you use an extra indexing structure for cases where you can't just advance one char at a time. I must say it is a rather elegant way, but it still fits firmly within "a new way or inefficient code".