[SLOF] [PATCH v2] slof/engine.in: refine +COMP and -COMP by not using COMPILE

Kautuk Consul kconsul at linux.ibm.com
Tue May 28 14:02:07 AEST 2024


Hi,

> 
> Is this optimization even measurable? :)
> 
> There is one thing which SLOF could do much faster (seconds or tens of seconds) - it is PCI scan where SLOF walks through all busses and slots even though it is all in the device tree already. But this "dotick" business does not scream for optimization imho. Thanks,

Yeah. In nanoseconds per control statement pair as per the benchmarking
in the emails before. For 45 IF-THEN and IF2-THEN2 statements I achieved
an improvement of around 35 microseconds on an average.
Nothing much but I just thought it is an interesting change considering
most of the Forth compiler is fine. I was just reading through the
Forth compiler in slof/engine.in and saw this and decided to post it out
of interest.

But I will abandon this patch now as you feel that this is not enough to
warrant any change in slof/engine.in. Thanks anyway!


More information about the SLOF mailing list