Re: Small feature request for future EU versions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kat wrote:

> On 22 Oct 2004, at 14:12, Juergen Luethje wrote:
>
>> Derek Parnell wrote:
>>
>>> Juergen Luethje wrote:
>>
>> <snip>
>>
>>>> That's why they are useless for text written in many languages other
>>>> than Englisch. That is strange for a product, that is intended for
>>>> international use, especially because it is very easy to write better case
>>>> conversion routines. Case conversion routines written without using the
>>>> operators in the manner mentioned above are also faster. That's why RDS
>>>> themselves don't use their own library routines for case conversion, when
>>>> speed is important (Euphoria/bin/guru.ex, Euphoria/bin/search.ex) ...
>>>
>>> I didn't think that would be the case, but I just tested a simple lookup
>>> table approach to case conversion and it runs in 75% of the time that
>>> lower() uses.
>>
>> I use personally a modified version of RDS' fast_lower() (URL might wrap):
>>
>> http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=9&fromYear=9&toMonth=9&t
>> oYear=9&postedBy=Juergen+Luethje&keywords=lower
>>
>> Applied to the whole text in Euphoria/Doc/Library.doc, it runs in 50% of
>> the time that lower() uses. smile
>
> Just out of curiosity, did you compare to/against Jiri's lib in
> http://www.rapideuphoria.com/nlseu.zip
> ? I did something similar in mirc ages ago, but naturally it ran v e r y s l o
> w l y
> there.

I hadn't compared it to that lib, because I wasn't aware of that library.
Now I downloaded 'nlseu.zip' and compared it:
Applied to the whole text of Euphoria/Doc/Library.doc, the nlsLower()
function in 'nlseu.zip' takes 310% of the time that the lower() function
in 'wildcard.e' uses. Furthermore, nlsLower() is only for Windows.

Regards,
   Juergen

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu