Re: speed and perl

2002-08-04 Thread Paul Johnson
On Sat, Aug 03, 2002 at 03:54:07PM -0400, Paul Tremblay wrote: On Sat, Aug 03, 2002 at 10:58:24AM +0200, Paul Johnson wrote: On Fri, Aug 02, 2002 at 02:08:25AM -0400, Paul Tremblay wrote: (I know I did a little test with sed, a python script, and a perl script, just changing the

Re: speed and perl

2002-08-04 Thread Bryan DeLuca
You're not reading the graph right. LangCPU/sec Kb Mem Lines of code perl4.72134428 python 8.88149227 Based on this test Perl is twice as fast as Python and uses less memory. Perl is faster than

Re: speed and perl

2002-08-03 Thread Paul Johnson
On Fri, Aug 02, 2002 at 02:08:25AM -0400, Paul Tremblay wrote: (I know I did a little test with sed, a python script, and a perl script, just changing the word the to teh in a huge file. Sed and python took about he same time, while perl was six times faster.) This is from the perl source

Re: speed and perl

2002-08-03 Thread Paul Tremblay
On Fri, Aug 02, 2002 at 08:43:45AM -0500, Bryan DeLuca wrote: If you are interested in language benchmarks you might want to check out the Great Computer Language Shootout: http://www.bagley.org/~doug/shootout/ It has some surprising results. Yes, the results are surprising. According

Re: speed and perl

2002-08-03 Thread Paul Tremblay
On Sat, Aug 03, 2002 at 10:58:24AM +0200, Paul Johnson wrote: On Fri, Aug 02, 2002 at 02:08:25AM -0400, Paul Tremblay wrote: (I know I did a little test with sed, a python script, and a perl script, just changing the word the to teh in a huge file. Sed and python took about he same

Re: speed and perl

2002-08-02 Thread drieux
On Thursday, August 1, 2002, at 11:08 , Paul Tremblay wrote: [..] Certainly, a perl script would be easier to maintain and debug. Thoughs on how C, java, and perl compare on speed? I think what you are running into here is that 'c' as is, was not built to do 'regular expression' work

RE: speed and perl

2002-08-02 Thread Nikola Janceski
personally I don't do speed while writing perl. I tend to break many keys. The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views

Re: speed and perl

2002-08-02 Thread Bryan DeLuca
wondering if C++ would have given that much of a time advantage--if any at all. Certainly, a perl script would be easier to maintain and debug. Thoughs on how C, java, and perl compare on speed? (I know I did a little test with sed, a python script, and a perl script, just changing the word

Re: speed and perl

2002-08-02 Thread Jenda Krynicky
mean text munglig is something Perl has been optimized to do. Keep in mind that you spend most of the time in libraries and functions implemented in C, heavily optimized. Certainly, a perl script would be easier to maintain and debug. Thoughs on how C, java, and perl compare on speed? [rem

Re: speed and perl

2002-08-02 Thread Dennis G. Wicks
On Fri, 2 Aug 2002, Jenda Krynicky wrote: Computing power is cheap, programmers' time is expensive! Yes, but the programmer's time is only used once. CPU cycles are used again and again and again ... The cost of inefficient programs is cumulative and results in increasing all the

Re: speed and perl

2002-08-02 Thread drieux
On Friday, August 2, 2002, at 08:36 , Dennis G. Wicks wrote: On Fri, 2 Aug 2002, Jenda Krynicky wrote: Computing power is cheap, programmers' time is expensive! [..] The cost of inefficient programs is cumulative and results in increasing all the infrastructure costs because of the

RE: speed and perl

2002-08-02 Thread Nikola Janceski
: drieux [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 1:07 PM To: begin begin Subject: Re: speed and perl On Friday, August 2, 2002, at 08:36 , Dennis G. Wicks wrote: On Fri, 2 Aug 2002, Jenda Krynicky wrote: Computing power is cheap, programmers' time is expensive

Re: speed and perl

2002-08-02 Thread drieux
On Friday, August 2, 2002, at 10:23 , Nikola Janceski wrote: [..] the Microsoft idea is good for games and NON-CRITICAL systems. but you would want reliablity for critical things. [..] I presume that you then disapprove of NT based weapons systems and avionics packages - and consider the idea

RE: speed and perl

2002-08-02 Thread Nikola Janceski
cursor. Take us back down to defcon 5. Sorry, no can do. GIANTWINDOW [new WOPR] is rebooting. Oh crap. -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 2:23 PM To: Beginners (E-mail) Subject: Re: speed and perl On Friday, August 2, 2002

Re: speed and perl

2002-08-02 Thread Jenda Krynicky
From: Dennis G. Wicks [EMAIL PROTECTED] On Fri, 2 Aug 2002, Jenda Krynicky wrote: Computing power is cheap, programmers' time is expensive! Yes, but the programmer's time is only used once. CPU cycles are used again and again and again ... So you have to find the right proportion.

speed and perl

2002-08-01 Thread Paul Tremblay
through all that trouble, but now I am wondering if C++ would have given that much of a time advantage--if any at all. Certainly, a perl script would be easier to maintain and debug. Thoughs on how C, java, and perl compare on speed? (I know I did a little test with sed, a python script, and a perl

Re: Does optimizing Perl speed up Perl programs?

2001-07-31 Thread Paul Johnson
On Mon, Jul 30, 2001 at 11:43:25AM -0500, Steve Snyder wrote: If I improve the performance of perl itself (by building it with different compiler switches) will this translate into improved runtime performance in the perl program itself?

Does optimizing Perl speed up Perl programs?

2001-07-30 Thread Steve Snyder
Hello. I am a total perl newbie who is running perl v5.6 on a RedHat Linux v7.1 system. I am using a perl program as a Web proxy redirector, a program that I would very much like to improve the performance of. If I improve the performance of perl itself (by building it with different