Skip to content

Tuning GC for specific byte size heap? #1300

Answered by vegorov-rbx
HaroldCindy asked this question in Q&A
Discussion options

You must be logged in to vote

You can use lua_gc to decrease goal % using LUA_GCSETGOAL and increase GC mark/sweep 'speed' using LUA_GCSETSTEPMUL.

Be careful of course to not choose values too extreme as it will increase the runtime cost.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by HaroldCindy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants