Comment from: Tony Cook [Visitor]
Just as a proof of concept:
Testing locally with ICU 4.8.1:
Rate uca icu sort
uca 7.66/s -- -91% -98%
icu 83.7/s 992% -- -82%
sort 472/s 6057% 464% --
Comment from: [Member]
Great work, Tony! Can't wait to try it out!
I really like the idea of having a uniform OS independent collation algorithm for Perl. The collation orders for Windows locales seems to differ from the ones in Unix, for example. Pity it's so slow, like you said yourself...
If you're in Unix, there is Unicode::ICU::Collator, which is a wrapper around the ICU library. It is thousands of times faster than Unicode::Collate, but I have yet to compile it in Windows. It's not provided as a package in ActivePerl.
Interestingly enough, Unicode::Collate::Locale is much faster in Windows than it is in Linux. Peculiar...
Wrong, it is not. I don't know what happened there...
Alright Tony, I didn't realize until now that it was you who wrote Unicode::ICU::Collator! Thanks a bunch for this one. It's a hell of a lot faster than Unicode::Collate::Locale, and I use it whenever I can.
Form is loading...