in reply to Perl keyword like the C/C++ keyword 'inline'

If you are worried about optimization on that level then Perl may not be the best choice for whatever you are trying to do. Perl is fast when most of the work is being done in standard functions which are part of the interpreter.

Maybe refactoring the code will help? If you have specific examples that demonstrate the problem, post em here and we'll see what may be done to improve performance.


True laziness is hard work
  • Comment on Re: Perl keyword like the C/C++ keyword 'inline'

Replies are listed 'Best First'.
Re^2: Perl keyword like the C/C++ keyword 'inline'
by sadarax (Sexton) on Sep 29, 2009 at 09:04 UTC
    I am not currently experiencing slow performance but the functions are only being called about 120,000 times when the script is being run.

    This is more about curiosity to learn about what optimization options are before me, and if indeed inlining exists in perl and is useful in perl.

    Currently I don't have any examples to post, but I will try to post some soon.