From: Steven Barth Date: Fri, 5 Sep 2008 18:34:56 +0000 (+0000) Subject: Heavy memory/performance optimizations #2 X-Git-Tag: 0.8.0~135 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=45319b232bc331492dd98e474c9ea60a9a70bc8f;p=oweals%2Fluci.git Heavy memory/performance optimizations #2 --- diff --git a/libs/web/luasrc/config.lua b/libs/web/luasrc/config.lua index 12d7e8c91..dd3e01734 100644 --- a/libs/web/luasrc/config.lua +++ b/libs/web/luasrc/config.lua @@ -34,5 +34,5 @@ local require = require module "luci.config" pcall(function() - util.update(_M, require "luci.model.uci".cursor():get_all("luci")) + setmetatable(_M, {__index=require "luci.model.uci".cursor():get_all("luci")}) end)