mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-24 08:31:47 +00:00
Reduce memory usage
This commit is contained in:
parent
1aae252fc3
commit
590a5236bb
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ func newSandboxedState() *glua.LState {
|
|||
// Capture preload before package is hidden; require() reads loaders from the registry.
|
||||
module := L.GetGlobal(glua.LoadLibName).(*glua.LTable)
|
||||
preload := module.RawGetString("preload").(*glua.LTable)
|
||||
loaders := L.NewTable()
|
||||
loaders := L.CreateTable(1, 0)
|
||||
loaders.RawSetInt(1, L.NewFunction(func(L *glua.LState) int {
|
||||
name := L.CheckString(1)
|
||||
loader := preload.RawGetString(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue