Re: [pypy-dev] cppyy use case question

2012-06-06 Thread wlavrijsen
Hi Armin, But IMHO the main slow part that should be optimized (probably by being rewritten from scratch) is the correspondance between the proxy PyObject structures and the real PyPy objects, which is exactly the part that interests you too. It should be possible at least to cope with only one

Re: [pypy-dev] cppyy use case question

2012-06-06 Thread Armin Rigo
Hi Wim, On Wed, Jun 6, 2012 at 9:10 AM, wrote: > If I understand correctly what you describe above, then perhaps giving > the "PyPyObject by pointer" as payload to the PyObject could help, too. Yes: so far, most PyObjects are small structures containing just the refcount and the cpyext-ified ty

Re: [pypy-dev] cppyy use case question

2012-06-06 Thread Alex Pyattaev
> If the goal > is "only" to pass around PyObjects as black boxes, as fast as > reasonably possible, then the easiest route would be to not use cpyext > at all, but instead try to come up with your own mapping logic. This > looks quite easier for experimentation purposes. And if you end up > wit

[pypy-dev] support for ordinals on windows in _ffi and ctypes

2012-06-06 Thread Matti Picus
I have started a branch to support app level finding functions by ordinals: win-ordinal I would be happy for any comments as it progresses. Currently, I have added tests and ordinal handling to rlib/libffi.py and module/_ffi if I run tests one at a time, they all pass, but running in one pass