Message9376
 
            
            
            
 
   
   
 
  | So the additional overhead here has a simple root cause: unlike CPython, Jython uses the same method, PyArray.fromStream, to read from an input stream into a given array. Although the read should be reasonably fast/inlineable (but more overhead than simply looping through the string), the write performance into the array is very slow since it uses java.lang.reflect.Array, in this case java.lang.reflect.Array#setByte.
Some simple specialization would speed things up considerably, much as was done with CPython.
Changing misleading title! (Copy-on-write would still be interesting, and perhaps more feasible on Jython.) |  |
 
| Date | User | Action | Args |  | 2015-01-12 17:35:18 | zyasoft | set | messageid: <1421084118.71.0.47608689552.issue1612@psf.upfronthosting.co.za> |  | 2015-01-12 17:35:18 | zyasoft | set | recipients:
  + zyasoft, fwierzbicki, akong, doublep, mcieslik |  | 2015-01-12 17:35:18 | zyasoft | link | issue1612 messages |  | 2015-01-12 17:35:18 | zyasoft | create |  | 
 |