diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-16 12:18:03 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-16 12:18:03 +0000 |
commit | a104b4331c3ff1891c34087e511cd28d9ba39c56 (patch) | |
tree | 2e3c45d33340dff10027fe8be509ba6037200ba4 /pod/perlunicode.pod | |
parent | ac0fb5eabfe7648ffd2a834f087e61c7be32cedd (diff) | |
download | perl-a104b4331c3ff1891c34087e511cd28d9ba39c56.tar.gz |
Give a concrete example of the still existing Unicode slowness.
p4raw-id: //depot/perl@21243
Diffstat (limited to 'pod/perlunicode.pod')
-rw-r--r-- | pod/perlunicode.pod | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pod/perlunicode.pod b/pod/perlunicode.pod index 1101b5ee08..5026fc11fb 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<Nd> +compared with the 10 ASCII characters matching C<d>). =head2 Porting code from perl-5.6.X |