You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function yun()
local mytable = TestFun()
print(collectgarbage("count"))
mytable = nil
print(collectgarbage("count"))
collectgarbage("collect")
collectgarbage("collect")
print(collectgarbage("count"))
end
When this code runs on windows, the code executes to return points;, memory will grow to 45M; When executing to pstate - > collect_ garbage(); the memory will be reduced to 10M. However, when running on Linux, the code executes to return points;, The memory will grow to 27M and execute to pstate - > collect_ garbage();the memory will not be reduced. If multiple sol:: state are used in my system, the memory will grow to a very large size. Is my use inappropriate?
The text was updated successfully, but these errors were encountered:
C++:
lua
When this code runs on windows, the code executes to
return points;
, memory will grow to 45M; When executing topstate - > collect_ garbage();
the memory will be reduced to 10M. However, when running on Linux, the code executes toreturn points;
, The memory will grow to 27M and execute topstate - > collect_ garbage();
the memory will not be reduced. If multiplesol:: state
are used in my system, the memory will grow to a very large size. Is my use inappropriate?The text was updated successfully, but these errors were encountered: