aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-26 05:26:12 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-26 05:26:12 +0500
commit8dd8338afca7afefbb6921a71d399bf1513f3e05 (patch)
tree7e686db9deee02f71afbc3d8b304e26d7c3f6ef3 /util
parent2c0ba4f75ffcb5dc9c4a97a2d647ed954c450bf6 (diff)
downloadprosody-8dd8338afca7afefbb6921a71d399bf1513f3e05.tar.gz
prosody-8dd8338afca7afefbb6921a71d399bf1513f3e05.zip
util.template: Don't add stanza.last_add. 20% faster.
Diffstat (limited to 'util')
-rw-r--r--util/template.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/template.lua b/util/template.lua
index 7baf10e1..ebd8be14 100644
--- a/util/template.lua
+++ b/util/template.lua
@@ -78,7 +78,7 @@ local function create_attr_string(attr, xmlns)
end
local function create_clone_string(stanza, lookup, xmlns)
if not lookup[stanza] then
- local s = ('setmetatable({name=%q,attr=%s,last_add={},tags={'):format(stanza.name, create_attr_string(stanza.attr, xmlns));
+ local s = ('setmetatable({name=%q,attr=%s,tags={'):format(stanza.name, create_attr_string(stanza.attr, xmlns));
-- add tags
for i,tag in ipairs(stanza.tags) do
s = s..create_clone_string(tag, lookup, stanza.attr.xmlns)..";";