Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^16: The Most Essential Perl Development Tools Today (negative)

by BrowserUk (Pope)
on Jan 14, 2013 at 11:49 UTC ( #1013199=note: print w/ replies, xml ) Need Help??


in reply to Re^15: The Most Essential Perl Development Tools Today (negative)
in thread The Most Essential Perl Development Tools Today

Any performance gain is a nice side effect. The primary point is, not doing that which is not necessary, solely to satisfy some twisted notion of "correctness".

Would this improve speed of web apps, using CGI::Application?

Probably. Whether it would be enough that your clients would notice is doubtful, but if you are running the application on a server farm, you might be able to measure a reduction in your power usage that would be worth having.

I can imagine that if Google found a way to reduce their electricity bill by even 5% by doing something -- or rather not doing something -- that required no other effort and had no other cost, they'd be all over it.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^16: The Most Essential Perl Development Tools Today (negative)
Re^17: The Most Essential Perl Development Tools Today (negative)
by Anonymous Monk on Jan 14, 2013 at 12:00 UTC
    I will look into this. But CGI::Application seems hevily dependant on use of $self-> and returning from each runmode. http://search.cpan.org/~markstos/CGI-Application-4.50/lib/CGI/Application.pm

      If you are intent on optimising CGI::Application, from a quick glance only, there seems to be plenty of scope for it that will probably yeild greater benefits than the removal of return statements. That said though, there is probably nothing else that will yeild benefits for so little effort :)

      If you choose to test it, be aware that there is one type of return statement that your shouldn't blindly remove:

      return; # Otherwise, return undef

      Omit that bare return and you will change the result.

      Also note: I've never used CGI::Application, so bear that into your considerations.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2014-07-30 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (235 votes), past polls