Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

CGI_Lite vs. CGI::Simple

by perrin (Chancellor)
on Aug 29, 2002 at 20:16 UTC ( [id://193896]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: lighter alternative to CGI.pm
in thread lighter alternative to CGI.pm

I just tested it, and for the very minor use that I'm putting it to CGI::Simple is actually slower than CGI.pm. I'm a little bit boggled by this result, but I guess it's just a matter of the particular functions I'm using. CGI_Lite, on the other hand, gives about a 60% speed increase in the overall execution time of the script.

Replies are listed 'Best First'.
Re: CGI_Lite vs. CGI::Simple
by tachyon (Chancellor) on Sep 18, 2002 at 22:57 UTC

    I would like to see your code as all the testing I did showed that CGI::Simple was quite a bit faster than CGI across the board. I too am boggled.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      All it does is load CGI_Lite and parse cookies. Nothing else.

        If that's all you need why not call CGI::Cookie or CGI::Simple::Cookie directly? You don't need to call CGI/CGI::Simple at all as these modules have their own APIs....

        use CGI::Cookie; use Data::Dumper; my %cookies = fetch CGI::Cookie; print "Content-type: text/html\n\n", Dumper \%cookies;

        cheers

        tachyon

        s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found