> Message: 3 > Date: Wed, 6 May 2009 22:44:30 -0500 > From: Daniel Ehrenberg <[email protected]> > Subject: Re: [Factor-talk] symtab > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > There are a number of ways that you can optimize the Factor code > before resorting to unportable assembly language. For one, making all > combinators inline allows the compiler to perform defunctionalization, > removing all extra overhead associated with higher-order functions. > Other well-placed inline declarations would allow the compiler to > perform stronger optimizations. You can also experiment with hints to > instruct the compiler to make specialized versions of words for > certain types of inputs. The Factor implementation frequently becomes > faster, so using the a recent version will also help performance.
Now that symtab is debugged, I can experiment with improvements such as the use of inline. Why is assembly language unportable? Isn't the Pentium series the only processor that Factor runs on? Maybe in the future if there is an ARM version, portability might be an issue. These are pretty short functions though, so I doubt that rewriting them in ARM assembly would be all that much work. For something like a symbol table, which is at the very heart of the compiler, it seems like work worth doing. Compilation speed is a big part of making an interactive environment, which is Forth's (and Factor's) main selling point. Lack of an interactive environment is why languages such as C++ and Pascal are pretty much dead (and unlamented, as far as I'm concerned). ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
