This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: Use fewer branches
authorKarl Williamson <khw@cpan.org>
Tue, 13 Dec 2016 02:36:36 +0000 (19:36 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 23 Dec 2016 23:48:34 +0000 (16:48 -0700)
commit23359a664a973661774a4730b281fbd03cbd01b1
tree08e288fd954587aef259055fabd1672e4133058c
parente20fd8f46e1fcbfb9b705bb1723360e062a298f0
toke.c: Use fewer branches

This code is true for all ASCII space characters except \n.  Rather
than enumerating them with a branch each, use a single lookup, and then
exclude \n
toke.c