Mark Wills <
markwi...@gmail.com> wrote:
> On Tuesday, 10 October 2017 09:23:49 UTC+1, Rod Pemberton wrote:
>> Is there an advantage to Forth dictionary restructuring?
>>
> In 1981, on a TRS80 compiling from blocks on floppy? Maybe.
It did. I remember the polyFORTH compilation speed was considerably
better than fig-FORTH's, even with floppies.
And that's not really surprising: step time was maybe 12 ms per track
and the rotational latency perhaps 100ms. To search a dictionary of
16k you'd have to traverse 6k(too much?) of headers, and each byte
would take maybe four instructions to scan. So each search would take
maybe 10ms. Say 150 words to search for on each block: that's more
than a second per block for dictionary searches alone. That's how I
remember it, and it's a whole order of magnitude slower than the disk.
Take the polyFORTH hashed dictionary, with much more efficient
scanning, and you can cut that search time by a factor of ten.
Andrew.