Message170713
> What about _has_surrogates = re.compile('[^\udc80-\udcff]*\Z').match ?
The runtime is a bit slower than re.compile('[\udc80-\udcff]').search, but otherwise it's faster than all the other alternatives. I haven't checked the startup-time, but I suspect it won't be better -- maybe even worse. |
|
Date |
User |
Action |
Args |
2012-09-19 08:49:57 | ezio.melotti | set | recipients:
+ ezio.melotti, loewis, barry, orsenthil, nadeem.vawda, r.david.murray, rosslagerwall, serhiy.storchaka |
2012-09-19 08:49:57 | ezio.melotti | set | messageid: <1348044597.65.0.0671540879274.issue11454@psf.upfronthosting.co.za> |
2012-09-19 08:49:56 | ezio.melotti | link | issue11454 messages |
2012-09-19 08:49:56 | ezio.melotti | create | |
|