Message10249
In order to fix this I have:
1. implemented character classifiers (isalpha, etc.) in BaseBytes.
2. re-implemented the BaseBytes methods using these classifiers.
3. made PyUnicode not depend on PyString for these operations.
4. given PyString implementations that use the BaseBytes.isalpha, etc.
Benchmarks show the new PyString methods to be a little quicker than the old ones (as you might hope, given the simplification). Change sets:
https://hg.python.org/jython/rev/50082331db8d
and successors address this.
There are still parts of PyString that use Character.is* methods, for example the transformation methods lower, upper, title. |
|
Date |
User |
Action |
Args |
2015-09-10 23:05:03 | jeff.allen | set | messageid: <1441926303.79.0.58200074218.issue2364@psf.upfronthosting.co.za> |
2015-09-10 23:05:03 | jeff.allen | set | recipients:
+ jeff.allen, zyasoft, ztane |
2015-09-10 23:05:03 | jeff.allen | link | issue2364 messages |
2015-09-10 23:05:03 | jeff.allen | create | |
|