Derek Glidden wrote:
> Sergei Kolodka wrote:
> >
> > Anyone here tried to compile OpenSRS cgi's
> > in executebles with perlcc or B::C ?
> > Interested in result, is compiling increases
> > speed and what about server's load ?
>
> I haven't tried, but my guess is going to be that you're not going to
> get a whole lot from it.  Most of the program's time is going to be
> spent waiting either for user input from the webpage or from a response
> from the OpenSRS server, so compiling your app is just going to enable
> it to wait faster.  :)

Compiling a perl app with B::C will mainly make it startup faster, but not
execute any faster. From the B::C manpage:

       "compiling with this backend will not help improve the runtime
       execution speed of your program but may improve the start-
       up time."

The main problem with perl scripts on slow machines is that sometimes you have
to wait a second for the script to parse. With CGI the script is parsed every
time that it is run, because a new processes is created each time. That's why
mod_perl was created, which allows you to parse everything once (storing the
parsed code in the Apache server) and then have the server handle a bunch of
requests super-quick.

I do believe that OpenSRS does run under mod_perl as a registry script.

See: http://perl.apache.org/

David Harris
President, DRH Internet Inc.
[EMAIL PROTECTED]
http://www.drh.net/


Reply via email to