On Dec 25, 2:21 am, shlo...@iglu.org.il (Shlomi Fish) wrote: > ---------- Forwarded Message ---------- > > Subject: Re: Writing 3D games with Perl... How's the Performance? > Date: Friday 24 December 2010, 12:43:11 > From: Shlomi Fish <shlo...@iglu.org.il> > To: beginn...@perl.org > CC: "U.N." <blahbleh...@hotmail.com> > > [snip] > > > I realize that comparing Java and Perl is like comparing Apples and > > Oranges, but since they are both interpreted I would guess that they > > both share a similar performance handicap. > > Jave is also not interpreted. Like Perl it is compiled to bytecode, but unlike > Perl, this bytecode can be executed directly from the disk (e.g: its .class > files), and, furthermore, many Java implementation contain an additional > optimisation step called Just-in-time compilation (JIT): > > http://en.wikipedia.org/wiki/Just-in-time_compilation > > This improves the performance considerably, and as a result, Java code tends > to run much faster than the equivalent Perl one. (Though many people feel Java > has other performance issues such as being "sluggish", where Perl fares > better.).
I don't doubt that Java - especially with JIT - can be faster than Perl for some tasks... but "much faster"...? Do you have a citation? And I seem to recall Perl being faster than Java in many areas, particularly, if there's heavy text processing and performing equivalently if there's lots of I/O. Perhaps that's no longer the case (or maybe bias has warped my memory). -- Charles DeRykus -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/