Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Regex Optimization Question

by JavaFan (Canon)
on May 16, 2011 at 09:37 UTC ( [id://905033]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex Optimization Question
in thread Regex Optimization Question

There's efficiency in execution time, efficiency in memory usage, efficiency in programmer time, etc. Generally programmer time is the most important thing to optimize for,
IMO, it's actually very, very rare if there's a situation where you can pinpoint "the most important thing to optimize for".

In fact, I cannot think of any.

Generally, they are all important, and it takes a good programmer/manager/project leader to strike the right balance.

Replies are listed 'Best First'.
Re^3: Regex Optimization Question
by duff (Parson) on Jun 29, 2011 at 17:48 UTC

    Indeed. However, not having any information about where to focus on efficiencies, you can't go wrong on "programmer time" as a sane default thing to optimize. That's why it's generally the most important thing and not specifically the most important thing. :-)

      You got any data to back that up? Or is that just your opinion? Frankly, I doubt that it will still be your opinion if you gave it half a second of thought.

      Seriously, if programmer time would be "generally" the most important thing to optimize for, we shouldn't be writing documentation or tests, and copy-and-paste would be preferred over refactoring.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-23 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found