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

Re: [PATCH] is_list_assignment speedup

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
April 19, 2006 11:39
Subject:
Re: [PATCH] is_list_assignment speedup
Message ID:
20060419173851.10946.2@llama.ing-simmons.net
Andy Lester <andy@petdance.com> 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.
>
>xoxo,
>Andy


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