RE: Euphoria 2.5 Features..... ??

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

> From: Al Getz [mailto:Xaxo at aol.com] 
>
> Hello there Igor,
> 
> First off, that algorithm probably doesnt work for sequences 
> that dont have lengths that are multiples of 4. It's a neat 
> idea though smile
> 
> Second, why would you want to go through all that trouble
> when you can use allocate_text()/free() pairs to manage
> the storage of text if you are THAT worried about the
> waste of memory due to character sequence storage ?

Meditor uses a similar scheme to store text.  However, it packs 3
chars/element to avoid creating doubles.  You just need to make sure that
you pad the sequence as necessary.

It undoubtedly is a lot less trouble than direct memory storage, since
Euphoria handles all the garbage collection, reallocation, etc., especially
for an editor-like application.

Matt Lewis

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

Search



Quick Links

User menu

Not signed in.

Misc Menu