summaryrefslogtreecommitdiff
path: root/pod/perlclib.pod
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2014-11-06 23:57:14 -0500
committerFather Chrysostomos <sprout@cpan.org>2014-11-06 21:50:43 -0800
commit0e42d607f5f6c7f9dcca70d0d07f7d7f5dca5774 (patch)
tree63ee1b5a04098da8325e49bf2782c6bc373a9f9b /pod/perlclib.pod
parent9d22ccf6b40a09ba97011e2b50fde44e4eb71aa6 (diff)
downloadperl-0e42d607f5f6c7f9dcca70d0d07f7d7f5dca5774.tar.gz
simplify Perl_xs_apiversion_bootcheck
We control both strings. Perl API versions are not old decimal or alphas versions. Maints dont increase Perl API ver. Just do a memcmp. Faster and less machine code. Before 0xA6 bytes of machine code on VC 2003 32b, after 0x35. This patch is related to [perl #123136].
Diffstat (limited to 'pod/perlclib.pod')
-rw-r--r--pod/perlclib.pod3
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlclib.pod b/pod/perlclib.pod
index 7f86f1b54e..03dce25665 100644
--- a/pod/perlclib.pod
+++ b/pod/perlclib.pod
@@ -119,6 +119,9 @@ There is no equivalent to C<fgets>; one should use C<sv_gets> instead:
/ strGT(s1,s2)
strncmp(s1, s2, n) strnNE(s1, s2, n) / strnEQ(s1, s2, n)
+ memcmp(p1, p2, n) memNE(p1, p2, n)
+ !memcmp(p1, p2, n) memEQ(p1, p2, n)
+
Notice the different order of arguments to C<Copy> and C<Move> than used
in C<memcpy> and C<memmove>.