Message142660
bytearray() is using a less efficient implementation of split() than its similar friends bytes and unicode.
I added a couple extra checks to return early in {bytes,unicode} split().
- if length is 0
- if left strip removed all bytes
Looking at just how similar these 3 implementations are I feel that we could also unify/generalize them into one generic helper implementation and leave the object marshaling up to the type specific methods. |
|
Date |
User |
Action |
Args |
2011-08-22 02:59:01 | jcon | set | recipients:
+ jcon, pitrou, vstinner, benjamin.peterson, ezio.melotti |
2011-08-22 02:59:01 | jcon | set | messageid: <1313981941.49.0.99491814096.issue12807@psf.upfronthosting.co.za> |
2011-08-22 02:59:00 | jcon | link | issue12807 messages |
2011-08-22 02:59:00 | jcon | create | |
|