thanks you reply my message. I think the string is pure struct, mybe should special process; want a little of change as soon as possible enablement.
I have a little think of a way, whether add shareptr class in ctypes or cffi? this at denseness data exchange, it can large cut down memory copy. At 2014-01-13 04:53:56,"Armin Rigo" <ar...@tunes.org> wrote: >Hi, > >On Sun, Jan 12, 2014 at 6:28 AM, HY <lightdarkad...@163.com> wrote: >> I test 2f0d7dced731 >> memory isn't large engross. but at the AMD 5000+ CPU, 5 secs CPU 100%. >> I think this has a BUG. :) > >Yes :-) You can see why it's slow by following the logic in pure >Python in lib_pypy/_ctypes/, maybe by using just pdb. It's because >every character is individually converted to a ctypes object and back >before being stored into the string buffer. I guess we could add a >special case to massively speed up the common "array-of-char.value = >string". > > >A bientôt, > >Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev