home .. forth .. colorforth mail list archive ..

Re: [colorforth] merging dictionaries


An additional advantage, is that variables now need one less entry, since
the source addresss does not need to be stored twice. Removing this
eliminated another 8 bytes from the kernel. I did a simple benchark:

: t time - 100 for north next time + ; mark

seperate (4 runs):
3746813
3746008
3747306
3747361

merged (4 runs):
6280544
6278930
6275514
6275630

There is a clear space/time tradeoff.


 On Sun, 8 Jun 2003, Mark Slicker wrote:

> I wonder if anyone has considered merging the dictionaries macro and
> forth. I tried this, and it shaved 52 bytes off the kernel and simplified
> the code somewhat. I supose search times might be greater, but I did not
> test to see the result. To note, with the dictionaries merged, macro
> entries are distinguished by a 1 at bit 0.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
> Main web page - http://www.colorforth.com
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com