Message9376

Author zyasoft
Recipients akong, doublep, fwierzbicki, mcieslik, zyasoft
Date 2015-01-12.17:35:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421084118.71.0.47608689552.issue1612@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2015-01-12 17:35:18zyasoftsetmessageid: <1421084118.71.0.47608689552.issue1612@psf.upfronthosting.co.za>
2015-01-12 17:35:18zyasoftsetrecipients: + zyasoft, fwierzbicki, akong, doublep, mcieslik
2015-01-12 17:35:18zyasoftlinkissue1612 messages
2015-01-12 17:35:18zyasoftcreate