Re: [PATCH v2] slof/engine.in: refine +COMP and -COMP by not using COMPILE
Kautuk Consul <[email protected]> Fri, 23 Feb 2024 11:29:23 +0530
| Newsgroups | org.kernel.vger.kvm-ppc |
|---|---|
| Message-ID | <Zdg0O/[email protected]> |
Just to clarify one last point: On 2024-02-22 17:16:33, Kautuk Consul wrote: > Hi Thomas, > > > > > Hi Kautuk, > > > > could you maybe do some performance checks to see whether this make a > > difference (e.g. by running the command in a tight loop many times)? Running a single loop many times will not expose much because that loop (which is NOT within a Forth colon subroutine) will compile only once. In my performance benchmarking with tb@ I have put 45 IF-THEN and IF2-THEN2 control statements that will each compile once and reveal the difference in compilation speeds. > > You can use "tb@" to get the current value of the timebase counter, so > > reading that before and after the loop should provide you with a way of > > measuring the required time. > > > > Thomas > >