good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
T'is unfortunate that almost every function that does anything useful needs to call at least one perl API
Indeed ... though it's also often the case that many functions that call the Perl API don't really need to. Here's a simplistic example: Both renditions of foo() do essentially the same thing. But the rendition that has been commented out won't work when PERL_NO_GET_CONTEXT is defined, whereas the other rendition will. So there are possibilities even with the current Inline::C, depending upon how much time and energy you're prepared to devote in order to avoid the Perl API. But mostly, it's not worth the effort. (Of course, ideally you wouldn't even have to concern yourself with such matters when using Inline::C - and Ingy has indicated (in the link I provided earlier) that this might all be fixed in Inline::C following the Perl Conference that begins in the next day or so. In the meantime, if you want to define PERL_NO_GET_CONTEXT, then I think you're generally going to have to create an XS module. Cheers, Rob In reply to Re^8: Inline::C on Windows: how to improve performance of compiled code?
by syphilis
|
|