Hi Przemek,
Just like for most of others. Probably only HB_GUI is HB_NO_PROFILER
are important because pending code is executed in each HVM loop (for
each PCODE). I'll make speed test for HB_GUI to check current
difference.
#define N_LOOP 100000000
proc main()
local t, i
t:=secondsCPU()
for i:=1 to N_LOOP
next
? secondsCPU()-t
return
In this code the speed difference is about 4.3% (12.77 vs. 12.24).
Not too much but noticeable. Of course it's not realistic example
and in normal code which calls functions the difference will be
much smaller anyhow it illustrates the cost of single if() in main
HVM loop.
Hm, even less difference for HB_NO_DEBUG, below 2%.
(this value is below normal OS background processing)
Dunno, we may leave both as non-documented modifiers,
but this kind of optimization is like if you'd drop
out the passenger seat from your car to get a slightly
better 0-100 run. Some ppl even turn off headlights
with the same goal :)
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour