Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: When to use Java?

by ajt (Prior)
on Nov 19, 2002 at 13:03 UTC ( #214098=note: print w/ replies, xml ) Need Help??


in reply to When to use Java?

There are times when Perl isn't the best solution, and there are times when it is...

In the case you mentioned you are comparing apples with zebras. The Perl application is probably running as a CGI application, so the server forks of Perl each time, which is very slow to do. The Java application has been pre-loaded and compiled, so when it's called it doesn't have to grind away starting Java and compiling away like the Perl code does.

The comparison is not fair. To make it fair run the Perl code under mod_Perl or similar (e.g. FastCGI), or force the Java code to run through CGI. Java may still be faster, but you never know until you do a fair comparison.

A few extra links:

Hope this helps...

* update


--
ajt


Comment on Re: When to use Java?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-12-28 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls