[fpc-devel] static vs dynamic arrays

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Apr 4 17:23:42 CEST 2006


On 4 apr 2006, at 17:12, Пётр Косаревский wrote:

> If he understands right: if he reverted the order of the  
> "loops" (big loops, each between time measurings) or separated  
> "loops", splitting program, he'd get different results.
> However, splitting tests or reverting order doesn't seem to change  
> timings.

It does (tests on linux/x86):

Original order:
Total:8199ms
Total:12038ms

Reversed order:
Total:9526ms
Total:13332ms

I.e., whichever comes first gets the most regvars and is the fastest.  
Timings are not identical because that machine is currently fully  
loaded.


Jonas


More information about the fpc-devel mailing list