Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^6: Profiling/Benchmarking web applications.

by jryan (Vicar)
on Aug 25, 2004 at 19:18 UTC ( [id://385780]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Profiling/Benchmarking web applications.
in thread Profiling/Benchmarking web applications

Wouldn't that have to be [% field = data_header.field.$fieldno %], which uses eval?

Replies are listed 'Best First'.
Re^7: Profiling/Benchmarking web applications.
by dragonchild (Archbishop) on Aug 25, 2004 at 19:22 UTC
    You're correct - it would be $fieldno. But, why would you say it uses eval? Again, I've read the TT book, but I don't use it on an everyday basis, so I don't know it as well as I would like.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested

      Hey, I'm just going on what you told me. :)

      Update: Yikes, it definitely uses eval! My script's runtime went from ~0.85 seconds back up to 1.3 just after a global replace of s/(?<=\.)slice\((\w+),\1\)\.0/\$$1/g; (i.e. .slice(fieldno,fieldno).0 to .$fieldno)!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://385780]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found