[x] I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.
Changes Proposed
Part 1 of a major rewrite to our dearest file that hangs low-powered computers and triggers out-of-memory situations all the time.
At first, move static functions (except functions that will be bound to Lua methods) out of the LuaScriptInterface class into the tfs::lua namespace. This should help reducing the load to compile this file and enables cleaning up the header in the future.
A few unused functions were removed, and some that weren't used outside luascript.cpp were moved into it as static, within an anonymous namespace.
Pull Request Prelude
Changes Proposed
Part 1 of a major rewrite to our dearest file that hangs low-powered computers and triggers out-of-memory situations all the time.
At first, move static functions (except functions that will be bound to Lua methods) out of the
LuaScriptInterface
class into thetfs::lua
namespace. This should help reducing the load to compile this file and enables cleaning up the header in the future.A few unused functions were removed, and some that weren't used outside
luascript.cpp
were moved into it as static, within an anonymous namespace.