develooper Front page | perl.perl5.porters | Postings from July 2009

Re: [PATCH] Remove implicit split to @_

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
July 10, 2009 14:28
Subject:
Re: [PATCH] Remove implicit split to @_
Message ID:
4A57B281.1000606@pobox.com
Michael G Schwern wrote:
> It also means we can optimize it to just count the fields and not store an
> array.  And everyone loves optimizations!

Irony of ironies, split() in scalar is already faster in 5.10.0 than m/.../g
for the few common cases I've thrown at it, long or short string.

That's without optimizations or even removing the @_ behavior.  Imagine what
happens when someone with more C foo than me optimizes the scalar context case
to just be a regex count loop!


-- 
I have a date with some giant cartoon robots and booze.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About