perl-unicode

Re: utf8::SWASHNEW

2005-04-29 08:58:09
Eric Cholet wrote in perl.unicode :
I just did a profiling on one of my programs, and it turns out it 
spends most of its time in utf8::SWASHNEW. In second place is one of my 
own functions, and in third place comes utf8::SWASHGET. What do 
SWASHNEW and SWASHGET do ? (in layman's terms-- I browsed the source 
but it gave me a headache). Is this a price to pay when using Perl 
unicode strings?

They're used to load and initialise the swatchs, ie. internal hashes
that contain unicode properties (sets of unicode chars, e.g.
alphabetics, etc).

So, they're typically called rarely. Can you post an example of code
that reproduces the problem ?

-- 
The sensation of a very small and at the same time extremely heavy object
produced a disagreeable impression of repugnance and fear.
    -- Borges

<Prev in Thread] Current Thread [Next in Thread>
  • utf8::SWASHNEW, Eric Cholet
    • Re: utf8::SWASHNEW, Rafael Garcia-Suarez <=