In warnings.pm, delete a hash slice, instead of using a loop.
authorNicholas Clark <nick@ccl4.org>
Sun, 17 Feb 2013 08:16:01 +0000 (09:16 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 17 Feb 2013 08:16:01 +0000 (09:16 +0100)
commitb9929960b4602ae88b3f04bf15fa8cd2bf8a5c05
tree52bfc56460ae67d3e1901a90eab88c63a7a37e59
parent480c67241f1595db244990ae2327660f1eec3602
In warnings.pm, delete a hash slice, instead of using a loop.

Deleting a hash slice compiles 5 fewer ops, and executes 21 fewer than
looping over the keys to delete each in turn. Whilst this is arguably a
micro-optimisation, it does not increase obfuscation and is in code loaded
by nearly every Perl program, so feels worthwhile.
lib/warnings.pm
regen/warnings.pl