Hi

This is a nice problem, well presented. Here's four comments / questions.

1. How does the introduction of faster CPython in Python 3.11 affect the
benchmarks?
2. Is there an across-the-board change that would speedup this line-offsets
task?
3. To limit splitlines memory use (at small performance cost), chunk the
input string into say 4 kb blocks.
4. Perhaps anything done here for strings should also be done for bytes.

-- 
Jonathan
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/AETGT5HDF3QOFODOWKB4X45ZE4CZ7Y3M/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to