Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: CGI_Lite vs. CGI::Simple

by tachyon (Chancellor)
on Sep 18, 2002 at 22:57 UTC ( #199028=note: print w/replies, xml ) Need Help??


in reply to CGI_Lite vs. CGI::Simple
in thread lighter alternative to CGI.pm

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

Replies are listed 'Best First'.
Re: Re: CGI_Lite vs. CGI::Simple
by perrin (Chancellor) on Sep 19, 2002 at 13:34 UTC
    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

        It's a good idea. Unfortunately, CGI::Cookie requires CGI, which slows the script down massively. CGI::Simple::Cookie is measurably slower than CGI_Lite at this. Remember, compile times are part of it and that may be the only problem for CGI::Simple -- it uses two separate files.

        I'm currently working on getting fastCGI to run with this setup, because it's absurd to have to think about the number of files being used as a performance problem.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2021-04-17 01:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?