amarquis has asked for the wisdom of the Perl Monks concerning the following question:
(Besides practice)
Specifically, I feel like I'm missing intuition in my optimization procedure. Here's what I do:
Step 2 has some serious voodoo in it. Not good voodoo, bad voodoo. When I program in C, my guesses as to what needs to change and how to change it are pretty good. When working with Perl, I'm often shocked by which solutions perform faster, which is telling me that I've got a really poor mapping in my mind between operations in Perl and how much effort Perl exerts to accomplish them.
I don't feel like practice is teaching me much in this regard; I just end up confused as to why X is faster than Y. When perl is not quite fast enough's "What causes slowness in Perl" section has been a good resource for me, but I'm looking for more. Are there other resources out there (I've got the camel and the cookbook on my desk, as far as texts go) that would help wrap my head around this better? Reading posts around PerlMonks that optimize others' code make me really wish I was better at this.
Thanks in advance, and have a great thanksgiving if you are a thanksgiving-celebrating-monk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I get better at thinking about optimizing my Perl?
by perrin (Chancellor) on Nov 21, 2007 at 16:21 UTC | |
|
Re: How do I get better at thinking about optimizing my Perl?
by perlfan (Parson) on Nov 21, 2007 at 15:25 UTC | |
|
Re: How do I get better at thinking about optimizing my Perl?
by dragonchild (Archbishop) on Nov 21, 2007 at 16:44 UTC | |
|
Re: How do I get better at thinking about optimizing my Perl?
by olus (Curate) on Nov 21, 2007 at 17:28 UTC |