On 18-10-07 15.11, Ram Rachum wrote:

> Unfortunately, it's not helpful. I was developing a solution similar to yours before I came to the conclusion that a multilne regex would be more elegant.


How about memory mapping your 1GB file?

bytes patterns work on memoryviews.

regards, Anders


_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to