[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Help with lua 5.1 strange allocation behaviour
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 15 May 2012 13:13:46 -0300
> This posed the question then, why? The embedded system is slower
> than the desktop one, by orders of magnitude, and has no virtual
> memory. However, running the same code why should the behaviour
> differ? I am assuming that the gc runs in a deterministic manner, for
> instance for the same code it will be triggered at the same memory
> thresholds, do the same amount of work per k, etc.. My understanding
> is that it will take longer to run X iterations but the execution path
> and memory usage would be the same.
>
> Obviously this isn't the case, but why? Any references would be appreciated.
Probably the sizes of the objects in each machine are different; that
may change the pace of the collector. (Usually it should not make such
a big difference, but the incremental collector sometimes is susceptible
to those small changes.)
-- Roberto