openresty / luajit2

OpenResty's Branch of LuaJIT 2
https://luajit.org/luajit.html
Other
1.2k stars 193 forks source link

[feature request] backport lua 5.4 generational GC #141

Open suikabreaker opened 2 years ago

suikabreaker commented 2 years ago

ATT.

I'm developing using OpenResty and have put heavy logic on lua(with relatively large in-memory data and lot of string manipulation, and a lot of functions), and I noticed that those permanent GC object also slows down GC.

If we can mannually specify object as permanent it may also be sufficient for my case.

suikabreaker commented 2 years ago

here is an example of backporting: https://github.com/dibyendumajumdar/ravi/issues/196

suikabreaker commented 2 years ago

and another example(for manully disable GC for specified object): https://yuerer.com/Lua-GC%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%E4%BC%98%E5%8C%96%E6%96%B9%E6%A1%88/

Summer-Time-2020 commented 2 years ago

I have the same problem

hankai17 commented 10 months ago

@suikabreaker Is your problem solved?

hankai17 commented 9 months ago

https://github.com/openresty/luajit2/issues/210