Don't ask to ask, just ask | |
PerlMonks |
Re^9: Inline::C on Windows: how to improve performance of compiled code?by syphilis (Archbishop) |
on Jun 17, 2018 at 04:41 UTC ( [id://1216805]=note: print w/replies, xml ) | Need Help?? |
Defining PERL_NO_GET_CONTEXT doesn't stop it from running, but it doesn't improve performance one iota But you've defined PERL_NO_GET_CONTEXT too late for it to have any effect. It needs to be done prior to the inclusion of the 3 perl headers (EXTERN.h, perl.h and XSUB.h). Hence, it needs to be done in the Inline::C Config section as (The specified string, followed by a newline, will then be inserted in the generated XS file above the inclusion of those 3 headers.) UPDATE: I think you would be better off looking at ways to try and move some or all of your loop into C, rather than trying to optimise the calls from Perl to C I totally agree with that. I think that's where the most significant savings will be found. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|