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 -- wlavrij...@lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev