in reply to Re^2: optimization help
in thread optimization help

Perl's eval() definitely is not a constant-time operation. It definitely varies with the length and complexity of its input. I'd imagine it's at least O(n) with n being the length of the input string, but it's probably O(n*m*j*k*l) with the definition of m, j, k and l left as an exercise for the reader.

-sam

Replies are listed 'Best First'.
Re^4: optimization help
by GSF (Acolyte) on Oct 16, 2007 at 00:32 UTC
    Alright I must have misunderstood something, which is par for the course when I'm involved.

    Thanks for the info Sam.