Improve start time
BreakBB opened this issue ยท 0 comments
Description
One of the biggest performance losses on the initial load of Questie are the huge Lua tables our databases comes with.
As follow-up to #5801 we should transform more Lua tables to a loadable string, to increase start times.
TODOs
- Transform all Automatic corrections as string and use
loadstring
to load them on start - Update the build.py to transform all Corrections (
classicQuestFixes.lua
,cataQuestFixes.lua
, ...)- The idea here is to use some markers (like
-- @transform-on-build-start
+-- @transform-on-build-end
), find these in the build script and then replaces the marked locations to get a loadable string - To make sure this does not affect development, the places that call the wrapping function should simply check for
type(x) == "string"
and then useloadstring
- The idea here is to use some markers (like