handy.h: Don't call _utf8 fcns if ASCII
authorKarl Williamson <public@khwilliamson.com>
Mon, 26 Sep 2011 19:30:40 +0000 (13:30 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 1 Oct 2011 15:58:09 +0000 (09:58 -0600)
commitc8362b00a2c72add5b4b3004cbde7ea473a3623d
treec76b42be72e3f372a5cdb74f93dc4c024b0a2e1a
parentc0249a20a804e6fc6fcddc544485daf1e2dffac8
handy.h: Don't call _utf8 fcns if ASCII

This patch avoids the overhead of calling eg. is_utf8_alpha() on ASCII
inputs. The result is known to Perl's core, and this can avoid a swash
load.
handy.h