This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid copying the whole map to the stack on each call to get_I8_2_utf()
authorTony Cook <tony@develop-help.com>
Tue, 10 Jun 2014 06:07:12 +0000 (16:07 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 18 Jun 2014 00:47:29 +0000 (10:47 +1000)
commite0dcdb0a6a47e7be80138333509b94c176bdfbe7
tree7f1aa4fe11fce1261917de93468da883a5ac1021
parentd3532481a36e82cf5b9642b3dfe203a314a17cab
avoid copying the whole map to the stack on each call to get_I8_2_utf()

took run time from 51.6 sec to 41.6 sec

get_I8_2_utf() is called 147000 times by cp_2_utfbytes() which
typically doesn't use the whole table, so return a reference instead to.
regen/charset_translations.pl
regen/ebcdic.pl