This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change S_ckwarn_common() to looping over the packed warning value.
authorNicholas Clark <nick@ccl4.org>
Tue, 13 Oct 2009 12:01:52 +0000 (13:01 +0100)
committerNicholas Clark <nick@ccl4.org>
Tue, 13 Oct 2009 12:01:52 +0000 (13:01 +0100)
commit98fe6610b077571e54be1d655e66e1ad657a8910
tree532bceb1ec03d62f050fe0aaa10aae2addb9f312
parent26c7b074d5d3f0a79fab5f1c4eb28f38e81b88d2
Change S_ckwarn_common() to looping over the packed warning value.

The core never uses WARN3() or WARN4(), and rarely uses WARN2(), so the
previous code, effectively an unwrapped loop, wasn't a speed up. Functionally
equivalent smaller code fits better into CPU caches.
util.c
warnings.h
warnings.pl