lua-users home
lua-l archive

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


Shmuel Zeigerman wrote:
> Roberto Ierusalimschy wrote:
>> It seems we can compensate this effect by changing the collector settings.
>> For instance, with collectgarbage("setpause", 150) I got the following
>> results:
> [...]
>> Maybe the default should be changed.
>
> Is there a way for an application to find out current values of pause and 
> step?
> For instance, some library function may want to change these values before 
> doing its work and restore them afterwards.

This won't necessarily work. The collector thresholds are only
recalculated during the transition to the pause state. And this
may happen at any GC step (which could be outside your code).

BTW: Shmuel, the time/timezone on your desktop is still wrong. :-)

--Mike