develooper Front page | perl.perl5.porters | Postings from April 2006

Re: [PATCH] is_list_assignment speedup

Thread Previous | Thread Next
Nick Ing-Simmons
April 19, 2006 11:39
Re: [PATCH] is_list_assignment speedup
Message ID:
Andy Lester <> writes:
>It seems that because o->op_type is a bit field, it saves a good number
>of instructions, and probably speed, to cache its value in a native
>unsigned before doing a lot of comparisons.  Plus we save a lot of
>pointer indirects.

I thought op_type was 8-bits so that a sane compiler could use byte access
for it. But the cache doesn't hurt.

>This patch does that in is_list_assignment.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About