Re: version of euphoria ZIP
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Nov 07, 2005
- 468 views
Vincent wrote: > > Juergen Luethje wrote: > > > Using a constant in place of the routine # leads to readable code, yes. > > Then instead of the "include overhead" we have "constant overhead" ... > > Constant overhead is trivial in comparison with include overhead. But for the > record, you get both, along with some extra file scanning/parsing overhead > with > the desired method. I dont use constants with these machine routines anyway, > comments work fine for me. > > Euphoria remains very fast even with significant program inefficiencies. So > for > most people who figure Euphoria is fast enough, they dont really need to > bother > with silly stuff like this. But since I am a speed freak, all my code has to > be > efficient & optimized. > I think you're a great example of premature optimization. If you go around taking out all the machine_func wrappers, you probably haven't saved any noticeable time in either parsing or execution. Most of your optimization effort should usually be directed at better algorithmic solutions. You can often squeeze out a few percent by inlining certain things, but only if they're inside of inner loops or something. Matt Lewis