Re: Small feature request for future EU versions

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

Lucius Hilley wrote:

> ----- Original Message ----- 
> From: "Juergen Luethje"
>
>> <snip>
>>
>> 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) ...
>>
>> <snip>
>
> Those routines will do case convertion at any depth.
> Anything else would have to be either recursive or specially designed for
> each task.

My modified version of RDS' fast_lower() function (used in 'guru.ex' and
'search.ex') also does case conversion at any depth. Yes, it is recursive.

As I wrote, my function (which can also handle special characters such
as the German umlauts) runs in 50% of the time that lower() uses, when
applied to the whole text of Euphoria/Doc/Library.doc.

Do you think my recursive function will be slower than the lower()
library function, when applied to deeply nested objects? I don't
know. I think the library function also will have to do some recursion
internally. And do we apply lower() and upper() more often to deeply
nested objects, or to plain text strings?

Regards,
   Juergen

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

Search



Quick Links

User menu

Not signed in.

Misc Menu