Message183528
> Indeed, a bytearray version would require the talked about but not implemented due to complexity (in pep3118) support for locking a buffer from other mutations.
I rather think that a bytearray version can't pre-scan the data. Note that an array for pre-scanned result can be larger than input data (if we split into a large number of small items). Also note that iterative split useful when we do not want to process all input, but only several first items.
Actually I think that in most common cases non-iterative split will be faster than iterative one. |
|
Date |
User |
Action |
Args |
2013-03-05 13:54:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, gregory.p.smith, alex, santoso.wijaya |
2013-03-05 13:54:18 | serhiy.storchaka | set | messageid: <1362491658.78.0.22429576704.issue17343@psf.upfronthosting.co.za> |
2013-03-05 13:54:18 | serhiy.storchaka | link | issue17343 messages |
2013-03-05 13:54:18 | serhiy.storchaka | create | |
|