From: Jarkko Hietaniemi Date: Tue, 16 Sep 2003 12:18:03 +0000 (+0000) Subject: Give a concrete example of the still existing Unicode slowness. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a104b4331c3ff1891c34087e511cd28d9ba39c56;p=p5sagit%2Fp5-mst-13.2.git Give a concrete example of the still existing Unicode slowness. p4raw-id: //depot/perl@21243 --- diff --git a/pod/perlunicode.pod b/pod/perlunicode.pod index 1101b5e..5026fc1 100644 --- a/pod/perlunicode.pod +++ b/pod/perlunicode.pod @@ -1314,8 +1314,12 @@ byte-encoded. In Perl 5.8.0 the slowness was often quite spectacular; in Perl 5.8.1 a caching scheme was introduced which will hopefully make the slowness -somewhat less spectacular. Operations with UTF-8 encoded strings are -still slower, though. +somewhat less spectacular, at least for some operations. In general, +operations with UTF-8 encoded strings are still slower. As an example, +the Unicode properties (character classes) like C<\p{Nd}> are known to +be quite a bit slower (5-20 times) than their simpler counterparts +like C<\d> (then again, there 268 Unicode characters matching C +compared with the 10 ASCII characters matching C). =head2 Porting code from perl-5.6.X