in reply to Re: Re: Re: Re: Generating an array of n identical elements
in thread Generating an array of n identical elements
I'm wary of your results though. My gut feeling is that something is getting optimized away at compile time, but I can't seem to get it deparsed like that. Maybe x is really 168x faster than map in this case (and in your perl build and on your machine)..my @new; push @new, transform $_ for @old;
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^5: Generating an array of n identical elements
by bronto (Priest) on Sep 16, 2002 at 14:26 UTC |