At 04:29 PM 11/7/2001 -0500, James Mastros wrote:
>On Wed, Nov 07, 2001 at 10:15:07AM -0500, Ken Fox wrote:
> > I've been thinking of ways to speed up stuff like:
> > foreach my $x (@vector) {
> > $x *= $scale
> > }
> >
> > If Perl can keep the loop index in an integer register, then Parrot
> > could use fast loop ops. IMHO there's no point in using fast loop ops
> > if taking the length of @vector is expensive.
>Huha? I don't see what the problem is with keeping the index in an I
>register. The problem is with keeping the _current element_ in an I register.
Yup. Hidden things--loop counters, iterators, stuff like that--can and
probably will use the I registers.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk