Re: Function Calls are Slower - was Re: Print Question

2002-04-06 Thread Jonathan E. Paton
> > > > Function calls in Perl are dead slow compared > > > > to compiled languages. > > > > > > Ok, so why is this? > > > > > > > Implementation and little optimization. > > > > Perl has a complex function calling mechanism, as > > it flattens argument lists by pushing elements onto > > the s

Re: Function Calls are Slower - was Re: Print Question

2002-04-06 Thread Jenda Krynicky
From: "Jonathan E. Paton" <[EMAIL PROTECTED]> > > > Function calls in Perl are dead slow compared > > > to compiled languages. > > > > Ok, so why is this? > > > > Implementation and little optimization. > > Perl has a complex function calling mechanism, as > it flattens argum

Re: Function Calls are Slower - was Re: Print Question

2002-04-05 Thread Jonathan E. Paton
> > Function calls in Perl are dead slow compared > > to compiled languages. > > Ok, so why is this? > Implementation and little optimization. Perl has a complex function calling mechanism, as it flattens argument lists by pushing elements onto the stack, records argument list length - the num

Function Calls are Slower - was Re: Print Question

2002-04-05 Thread drieux
On Friday, April 5, 2002, at 02:51 , Jonathan E. Paton wrote: > Function calls in Perl are > dead slow compared to compiled languages. Ok, so why is this? will this get 'fixed' in p6? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: Print Question

2002-04-05 Thread Jonathan E. Paton
> With alot of calls to the function (approx 10% more > than #'s in array, so ALOT ), would it be quicker > to just put the function stuff in the do loop? Yes, probably quite a bit. If the function stuff isn't useful elsewhere then it would be significatly faster. Function calls in Perl are dea

RE: Print Question

2002-04-05 Thread Balint, Jess
do any good for me ( if I understand tied arrays ). -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 3:24 PM To: [EMAIL PROTECTED] Subject: Re: Print Question > Hello all. I have been working on this all day. Excellent, you'll app

Re: Print Question

2002-04-05 Thread Jonathan E. Paton
> Hello all. I have been working on this all day. Excellent, you'll appreciate my 5 minutes of effort all the more :P > I am trying to print out numbers 1 through 10 as this loop progesses. > For some reason, it doesn't print the numbers until the end of the loop. If you have that problem, try:

RE: Print Question

2002-04-05 Thread Balint, Jess
Cool. Works great. Thanks guys! -Original Message- From: Chas Owens [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 3:11 PM To: Balint, Jess Cc: '[EMAIL PROTECTED]' Subject: Re: Print Question On Fri, 2002-04-05 at 14:37, Balint, Jess wrote: > Hello all. I have be

Re: Print Question

2002-04-05 Thread Chas Owens
On Fri, 2002-04-05 at 14:37, Balint, Jess wrote: > Hello all. I have been working on this all day. I am trying to print out > numbers 1 through 10 as this loop progesses. For some reason, it doesn't > print the numbers until the end of the loop. The $done variable is set to 1 > by the getUniqRand(

Re: Print Question

2002-04-05 Thread Brett W. McCoy
On Fri, 5 Apr 2002, Balint, Jess wrote: > Hello all. I have been working on this all day. I am trying to print out > numbers 1 through 10 as this loop progesses. For some reason, it doesn't > print the numbers until the end of the loop. The $done variable is set to 1 > by the getUniqRand() functi