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

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

by Anonymous Monk
on Jan 14, 2013 at 09:37 UTC ( [id://1013176]=note: print w/replies, xml ) Need Help??


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

I could be jumping to the wrong conclusion here, but you mentioned this speed boost before. Would this improve speed of web apps, using CGI::Application?

Replies are listed 'Best First'.
Re^16: The Most Essential Perl Development Tools Today (negative)
by BrowserUk (Patriarch) on Jan 14, 2013 at 11:49 UTC

    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.
      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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1013176]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found