RE: Euphoria optimization
- Posted by Tommy Carlier <tommy.carlier at pandora.be> Dec 16, 2003
- 472 views
Robert Craig wrote: > Tommy Carlier wrote: > > I haven't seen the source code of Euphoria, but I may have found a way > > to optimize it a little (if the optimization doesn't yet exist). > > > > I (and I think a lot of programmers) use empty sequences quite > > frequently. Isn't there a way of optimizing those cases. I guess (I > > don't really know) that in the current version of Euphoria, each literal > > > > {} and "" creates a new sequence in memory. Couldn't you create an empty > > > > sequence at the beginning, and each time you find a "" or a {} (which > > might have whitespace in between), you just refer to that empty > > sequence? I don't know if this would have a big impact on speed, or > > memory usage, or if it already exists, but every optimization might > > help. > > Yes. That optimization has been implemented already. Great! I think there aren't many (interpreted) programming languages that are as optimized as Euphoria AND that have something as flexible and easy to use as sequences. > Regards, > Rob Craig > Rapid Deployment Software > http://www.RapidEuphoria.com ______________ tommy online: http://users.pandora.be/tommycarlier