On Wed, Jan 28, 2009 at 5:19 PM, Paul Moore <[email protected]> wrote:
> Leaving the vm on the stack was an experiment - in C, I'd probably
> have used a global variable, but I didn't want to add a variable
> lookup to something as critical as the VM. By keeping the vm around, I
> save some dups, but probably lose because I need more stack shuffling.
> I'll rewrite and compare the 2 versions (not that I doubt you, I'd
> just like to get a feel for the difference!)

Passing values on the stack is very cheap. I wouldn't use a global
variable for the VM, since that precludes using more than one parser
at a time.

Slava

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to