lua-users home
lua-l archive

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

I'm sorry about that

I want to upgate my process to lua5.4.3 How should I use it to make the incremental gc effect of lua5.4.3 consistent with lua5.3.6

Matthew Wild <> 于2022年1月19日周三 22:52写道:
On Tue, 18 Jan 2022 at 11:25, Roberto Ierusalimschy <> wrote:
What are the bugs? Is there something not working as it should?

I appreciate this is largely anecdotal at this point, but we put a lot of effort into analysing and reducing Prosody memory usage last year. I've been meaning to tidy the results and publish them with a write-up, but I haven't yet found the time. However the summary is that the GC in 5.2 and 5.3 behaved very poorly for us (even after tweaking the default parameters). 5.1 was somewhat better than these two, but 5.4 has given amazing results (generational mode sadly did not give the improvements we expected, but it was not terrible if I recall correctly).

I guess I'd hate for this performance to be the result of a "bug" ;)


P.S. On a related note, we've experimented with moving our most common/expensive data structures into Rust. So far we've not managed to significantly beat the compactness of standard Lua tables...