luajit2
luajit2 copied to clipboard
[feature request] backport lua 5.4 generational GC
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.
here is an example of backporting: https://github.com/dibyendumajumdar/ravi/issues/196
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/
I have the same problem
@suikabreaker Is your problem solved?
https://github.com/openresty/luajit2/issues/210