lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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