Skip to content

Commit

Permalink
metronome: increase default GC step multiplier to 500.
Browse files Browse the repository at this point in the history
It fixes an issue with memory usage increasing excessively in Lua5.2. Thanks MattJ.
  • Loading branch information
maranda committed Jun 15, 2021
1 parent 302c0e1 commit 071c68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metronome
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function init_global_state()
local settings = config.get("*", "metronome_gc");
settings = type(settings) ~= "table" and {} or settings;
collectgarbage("setpause", settings.setpause or 100);
collectgarbage("setstepmul", settings.setstepmul or 150);
collectgarbage("setstepmul", settings.setstepmul or 500);
collectgarbage("restart");
end

Expand Down

0 comments on commit 071c68c

Please # to comment.