I have a sophisticated encoding function in Pure Perl that I convert to XS in the hope of improving performance.
The function that I am converting to XS requires a recursive call. I can see how to use call_sv [thanks to "man perlcall"] to call Pure Perl functions.
But what do I call myself (or any other XS function) from within XS?
(PS Efficiency is very desirable ...)
Can someone tell me? Or an example? P-p-p-please!
UPDATE: The first answer was absolutely correct. Calling to recursive pure C functions works very well.
the.jxc
source share