Is perl better? :(((
akizub_at_yahoo.com
Date: 01/30/05
- Next message: Ed Dana: "Re: Stupid Newbie Question: get name of instantiated variable?"
- Previous message: milkyway: "Re: Struts : How is one supposed to write a .jsp"
- Next in thread: KiLVaiDeN: "Re: Is perl better? :((("
- Reply: KiLVaiDeN: "Re: Is perl better? :((("
- Reply: Juha Laiho: "Re: Is perl better? :((("
- Reply: Dimitri Maziuk: "Re: Is perl better? :((("
- Reply: Tom Dyess: "Re: Is perl better? :((("
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jan 2005 07:34:14 -0800
I'm proud and certified Java programmer since 1998.
Trust me, a lot of experience! And I prefer Java.
Also I work with other languages too.
For example we support/develop big system with around 300 perl scripts.
I try to move them to Java, but...
Recently I tried port one perl script. It does nothing but creates
thousands SQLs
retrieve and store/summarize rezults. SQLs are complicated a little but
return only pair of values. And this pair is stored in hashtable.
That's all. Simple enough.
Why not to rewrite?
But in Java it runs at least twice slower!
In my understanding there is no Java/perl calculations. Store couple
values! Phoo!
All time, I assume, is wasted on Oracle 9 connection. In middleware.
The SQLs are the same, connection is the same, Oracle is the same,
machine is the same. Everything is the same. Except time. perl is
faster somehow.
Then I used prepared statements. It became worse. At least 2.5 times
slower...
What's the deal?
Any ideas why it happens?
I believe I use latest Java 1.4, JDBC (ojdbc14.jar) from Oracle as well
as latest perl DBD or Oraperl modules.
Who have better experience?
Alex Kizub.
- Next message: Ed Dana: "Re: Stupid Newbie Question: get name of instantiated variable?"
- Previous message: milkyway: "Re: Struts : How is one supposed to write a .jsp"
- Next in thread: KiLVaiDeN: "Re: Is perl better? :((("
- Reply: KiLVaiDeN: "Re: Is perl better? :((("
- Reply: Juha Laiho: "Re: Is perl better? :((("
- Reply: Dimitri Maziuk: "Re: Is perl better? :((("
- Reply: Tom Dyess: "Re: Is perl better? :((("
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|