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

Re: HTML forms

by CountZero (Bishop)
on Dec 27, 2003 at 20:19 UTC ( #317220=note: print w/ replies, xml ) Need Help??

in reply to HTML forms

Yes, sure you can roll your own HTML.

If you do that, you do not need the HTML functions of and you can replace by CGI::Simple (less overhead and faster).


"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Comment on Re: HTML forms
Replies are listed 'Best First'.
CGI::Simple slower than CGI?
by epoptai (Curate) on Dec 30, 2003 at 01:50 UTC
    I took your advice and plugged CGI::Simple::Standard into a current project and found it consistently about 1/10 to 2/10 of a second slower than standard CGI. Current versions of both modules on activestate. Changing one line changed the output from times():
    #use CGI qw(Vars param header redirect); use CGI::Simple::Standard qw(Vars param header redirect);

    perl -MO=Deparse -e"u j t S n a t o e h r , e p l r a h k c r e"

      Very interesting: CGI::Simple states to be faster than CGI. So either this claim is not true or there is something else: perhaps CGI is preloaded by the server and CGI::Simple needs to be loaded again and again at the start of the script? If I have some time to spare during the next weekend, I might try some tests myself.

      Update: I now only see that you are using the functional interface to CGI::Simple (i.e. CGI::Simple::Standard) and that the claims to be faster only relate to the OO-interface.


      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-11-25 20:35 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (690 votes), past polls