[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Userdata and GC activity
- From: Linker <linker.m.lin@...>
- Date: Tue, 18 Nov 2008 14:38:33 +0800
On Tue, Nov 18, 2008 at 02:27, Alex Sandro Queiroz e Silva <email@example.com>
No, Lua uses a precise non-moving incremental mark-and-sweep
Florian Weimer wrote:
> Can the C memory region associated with a userdata object change its
> address during the lifetime of the object?
collector. It does not move memory around, which would be a bad thing
for a language designed to be embedded in C.
But good for cpu which have many levels of cache system.
Copy many blocks of data in memory will refresh cache in each core of cpus.
Copy is bad for cache.This is why java is slow.