develooper Front page | perl.perl5.porters | Postings from March 2013

Two minor tweaks to toke.c

From:
Brian Fraser
Date:
March 9, 2013 19:32
Subject:
Two minor tweaks to toke.c
Message ID:
CA+nL+naT5Z-SAha=BxBFgFD2wBKDyOufn5aRQ7N-cYT7kzJgkw@mail.gmail.com
Howdy all.

I've attached two patches. The first modifies S_intuit_method by
moving a scan_word a bit lower into the function, which stops us from
doing needless work and might provide a very minor speedup for things
like 'new $foo' or 'is $foo, $bar'. Second patch modifies the
VALID_LEN_ONE_IDENT macro to take a char argument, rather than a char*
and then doing a bunch of dereferences.



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