Software /
code /
prosody
Annotate
.hgignore @ 12201:e5e0ab93d7f4 0.11
util.xml: Break reference to help the GC (fix #1711)
LuaExpat uses a registry reference to track handlers, which makes
it so that an upvalue like this creates a reference loop that keeps the
parser and its handlers from being garbage collected. The same issue has
affected util.xmppstream in the past.
Code for checking:
local xml_parse = require"util.xml".parse;
for i = 1, 10000 do xml_parse("<root/>") end
collectgarbage(); collectgarbage();
print(collectgarbage("count"), "KiB");
A future release of LuaExpat may fix the underlying issue there.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Jan 2022 09:57:20 +0100 |
parent | 8345:850c433eb862 |
rev | line source |
---|---|
1296 | 1 syntax: glob |
2 .hgignore | |
7770
f0024972489e
hgignore: Ignore luacheck cache file
Kim Alvefur <zash@zash.se>
parents:
3636
diff
changeset
|
3 .luacheckcache |
1296 | 4 data |
5 local | |
6 www_files | |
7 html/* | |
8 prosody.lua | |
9 prosody.cfg.lua | |
2905
b924d915c4d0
.hgignore: Ignore prosody.version (thanks Florob)
Matthew Wild <mwild1@gmail.com>
parents:
1296
diff
changeset
|
10 prosody.version |
1296 | 11 config.unix |
12 *.patch | |
3636
88e4397e39a9
.hgignore: Ignore *.diff.
Waqas Hussain <waqas20@gmail.com>
parents:
3635
diff
changeset
|
13 *.diff |
1296 | 14 *.orig |
15 *.rej | |
16 *.save | |
17 *~ | |
18 *.o | |
19 *.so | |
20 *.install | |
21 *.pid | |
22 *.log | |
23 *.err | |
24 *.debug | |
3635
72f3619eeabd
.hgignore: Ignore Windows compilation artifacts.
Waqas Hussain <waqas20@gmail.com>
parents:
2905
diff
changeset
|
25 *.dll |
72f3619eeabd
.hgignore: Ignore Windows compilation artifacts.
Waqas Hussain <waqas20@gmail.com>
parents:
2905
diff
changeset
|
26 *.exp |
72f3619eeabd
.hgignore: Ignore Windows compilation artifacts.
Waqas Hussain <waqas20@gmail.com>
parents:
2905
diff
changeset
|
27 *.lib |
72f3619eeabd
.hgignore: Ignore Windows compilation artifacts.
Waqas Hussain <waqas20@gmail.com>
parents:
2905
diff
changeset
|
28 *.obj |
8244
6a27e5f276f7
.hgignore: Add luacov.report.out, luacov.report.out.index and luacov.stats.out
Waqas Hussain <waqas20@gmail.com>
parents:
7770
diff
changeset
|
29 luacov.report.out |
6a27e5f276f7
.hgignore: Add luacov.report.out, luacov.report.out.index and luacov.stats.out
Waqas Hussain <waqas20@gmail.com>
parents:
7770
diff
changeset
|
30 luacov.report.out.index |
6a27e5f276f7
.hgignore: Add luacov.report.out, luacov.report.out.index and luacov.stats.out
Waqas Hussain <waqas20@gmail.com>
parents:
7770
diff
changeset
|
31 luacov.stats.out |