[pypy-dev] okay to rename cppyy -> _cppyy

wlavrijsen at lbl.gov wlavrijsen at lbl.gov
Fri Jul 21 12:08:32 EDT 2017


Armin,

> people often fail to realize

count me among those. :) Yes, that is surprising.

> For the cases where the call is "simple enough", you might think that the
> API mode adds the marginal cost of a wrapper

To be sure, if the code is really simple, it's typically inlined on the C++
end and then a wrapper is needed anyway (shouldn't, but linkers tends to be
too smart by half as we found out).

Alright, let me try some micro-benches. If it can outperform CPython/cppyy
then I'm interested in pursuing this track. (With cppyy, wrappers are already
generated anyway and compiled by the LLVM JIT, but those are fully generic
ones, leaving lots of (un)packing and some copying on each call.)

Best regards,
            Wim
-- 
WLavrijsen at lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net


More information about the pypy-dev mailing list