This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
reorder intrpvar.h
authorDavid Mitchell <davem@iabyn.com>
Sat, 9 Mar 2013 23:36:16 +0000 (23:36 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 9 Mar 2013 23:43:41 +0000 (23:43 +0000)
commit19bc2726ec6be805cc44e282a4662e4faee04c2f
tree60666d6d22096d37dadac5f4967e653caade96f2
parent0a520fced6c7f8a21494d4e9c42cd89f3a8ff5a5
reorder intrpvar.h

Move more of the more commonly-used PL_ variables towards the front of the
file (and thus to the top of the interpreter struct on MULTIPLICITY
builds).

This helps ensure that "hot" variables are clustered together on the same
small number of cache lines, and also that the machine code to load them
will have shorter offsets, which on some architectures may be achieved
with shorter instructions.

The "hotness" has been determined purely by my subjective judgement rather
than any profiling. It's still open for the later to be done.

(Only simple shunting of whole lines has been done; no changes have been
made to individual lines.)
intrpvar.h