This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
For shorter strings, store C<study>'s data as U8s or U16s, instead of U32s.
authorNicholas Clark <nick@ccl4.org>
Tue, 28 Jun 2011 13:20:56 +0000 (15:20 +0200)
committerNicholas Clark <nick@ccl4.org>
Fri, 1 Jul 2011 12:05:41 +0000 (14:05 +0200)
commit72de20cdcc84ae35e0d8a55c7a92950fece19347
treefde310b665c99a781df72f0aeab31f0e8ba8225e
parentb606cf7f37b8b46206c7f521b29167e037397a62
For shorter strings, store C<study>'s data as U8s or U16s, instead of U32s.

The assumption is that most studied strings are fairly short, hence the pain
of the extra code is worth it, given the memory savings.
80 character string, 336 bytes as U8, down from 1344 as U32
800 character string, 2112 bytes as U16, down from 4224 as U32
ext/Devel-Peek/t/Peek.t
pod/perldelta.pod
pp.c
regexec.c
util.c