RE: Euphoria 2.5 Features..... ??
- Posted by "Lewis, Matthew W." <MATTHEW.W.LEWIS at saic.com> Dec 09, 2003
- 525 views
> 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> > 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