Browse Source

tiny performance improvement

master
Markus Bergholz 3 years ago
parent
commit
27ed53d771
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      turbowebdis.lua

+ 3
- 1
turbowebdis.lua View File

@@ -10,7 +10,9 @@ turbo.log.categories.success = config.turbo.logging
local function splitIntoArgs(path)
local args = {}
for arg in string.gmatch(path, "[^/]+") do
table.insert(args, arg)
-- table.insert(args, arg)
-- faster way (less function calls)
args[#args+1] = arg
end
return args
end -- function splitIntoArgs


Loading…
Cancel
Save