This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use memEQs, memNEs in core files
authorKarl Williamson <khw@cpan.org>
Tue, 31 Oct 2017 14:30:38 +0000 (08:30 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 6 Nov 2017 19:50:05 +0000 (12:50 -0700)
commitb59bf0b2884b21b6f3ce5eca607ab7a6096d87f5
tree8f7f056070732c24842887baa1d18b6a54a9f7d1
parentc8b388b0c776dab4a28db03739aff4d64daccada
Use memEQs, memNEs in core files

Where the length is known, we can use these functions which relieve
the programmer and the program reader from having to count characters.
The memFOO functions should also be slightly faster than the strFOO
equivalents.

In some instances in this commit, hard coded numbers are used.  These
come from the 'case' statement values that apply to them.
14 files changed:
ext/XS-APItest/APItest.xs
ext/attributes/attributes.xs
gv.c
hv.c
mro_core.c
numeric.c
op.c
pp_ctl.c
regcomp.c
scope.c
sv.c
toke.c
utf8.c
vms/vms.c