feat: Add global bytecode cache for Eluna scripts (#293)

This commit is contained in:
iThorgrim
2025-08-29 14:27:57 +02:00
committed by GitHub
parent 6fd81ea0e6
commit 65af80f08d
4 changed files with 319 additions and 5 deletions

View File

@@ -37,6 +37,14 @@
# Below are a set of "standard" paths used by most package managers.
# "/usr/local/lib/lua/%s/?.so;/usr/lib/x86_64-linux-gnu/lua/%s/?.so;/usr/local/lib/lua/%s/loadall.so;"
# Default: ""
#
# Eluna.BytecodeCache
# Description: Enable or disable bytecode caching for improved performance.
# When enabled, Lua/MoonScript files are compiled to bytecode and cached in memory.
# This significantly speeds up script reloading (.reload eluna).
# Cache is cleared only when files are modified or server restarts.
# Default: true - (enabled)
# false - (disabled)
Eluna.Enabled = true
Eluna.TraceBack = false
@@ -44,6 +52,7 @@ Eluna.ScriptPath = "lua_scripts"
Eluna.PlayerAnnounceReload = false
Eluna.RequirePaths = ""
Eluna.RequireCPaths = ""
Eluna.BytecodeCache = true
###################################################################################################
# LOGGING SYSTEM SETTINGS