in reply to Saving parsed perl for faster loading?

I should have looked before I typed. This will probably not help with your startup problem but might be a good suggestion for once you have fixed it and are looking for possible optimizations. Sorry for the bit of off-topic.

Is your generated code looping over a constructed regex? This can cause the regex to be reparsed over and over again in the regex engine. You may want to look at the o option so that it is only compiled once in the regex engine.

  • Comment on Re: Saving parsed perl for faster loading?

Replies are listed 'Best First'.
Re: Re: Saving parsed perl for faster loading?
by waswas-fng (Curate) on Dec 01, 2003 at 16:08 UTC
    o option does not really do anything to speed up most regex, if you are using the same static regex over and over try qr// instead. That actually compiles the regex and can produce speedups. As you said however this does not answer the OP's question. =)


    -Waswas
Re: Re: Saving parsed perl for faster loading?
by hardburn (Abbot) on Dec 01, 2003 at 16:06 UTC

    /o is dead, long live qr//!

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    : () { :|:& };:

    Note: All code is untested, unless otherwise stated