summaryrefslogtreecommitdiff
path: root/Porting
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-28 14:35:40 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-30 11:48:42 -0800
commit662308654967c8d237f3ee651bae9c27cd9feaa2 (patch)
tree9b54880a1f2ab9af8a41b57e4fd7b8f63b392a2d /Porting
parent93fa278758aa71f9c91078585c82898a9c7b8eb6 (diff)
downloadperl-662308654967c8d237f3ee651bae9c27cd9feaa2.tar.gz
Minimise the size of padname + string buffer
If we define the struct a little differently, we can begin the string buffer two bytes into a pointer, rather than pointer-aligned. In case some platforms can compare pointer-aligned string faster, I added a #define to allow that. But on 64-bit darwin the speed is identical either way: $ time ./miniperl -e 'eval q|my$a;|x50000 . q|eval q<my $A>|' I ran this three times in each mode, and the average of the user times differed by less than 1%.
Diffstat (limited to 'Porting')
0 files changed, 0 insertions, 0 deletions