Refactor to use LuaJIT and improve performance

Integrate LuaJIT as an optional runtime for better performance, with a fallback to standard Lua 5.4. Update Dockerfile to install LuaJIT and create a wrapper script for execution. Enhance network module with socket fallback support and update README to reflect these changes and configuration options.
This commit is contained in:
Bastian (BaM)
2025-09-15 08:44:19 +02:00
parent fff635c2d7
commit 8cb6d55782
9 changed files with 219 additions and 48 deletions

View File

@@ -5,13 +5,10 @@
-- - Optional Wake-on-LAN is native (no external tools).
-- - Optional port-wait is provided but commented out (mirrors original bash idea).
local socket = require("socket")
-- Import modules
local config = require("config")
local utils = require("utils")
local network = require("network")
local ssh = require("ssh")
local ollama_manager = require("ollama_manager")
local session_check = require("session_check")