about summary refs log tree commit diff stats
path: root/MemoryReferenceInfo.lua.0
Commit message (Collapse)AuthorAgeFilesLines
* remove some memory leaks from rendered fragmentsKartik K. Agaram2022-06-101-0/+1073
All signs so far seem to be that CPU is cheap for this application, but memory is expensive. It's easy to get sluggish if the GC comes on. After some experiments using https://github.com/yaukeywang/LuaMemorySnapshotDump, one source of memory leaks is rendered fragments (https://love2d.org/wiki/Text objects). I need to render text in approximately word-sized fragments to mostly break lines more intelligently at word boundaries. I've attached the files I used for my experiments (suffixed with a '.') There's definitely still a leak in fragments. The longer I edit, the more memory goes to them.
revision' href='/akkartik/text.love/blame/README.md?id=1e33eeeffcb979301b2e88ee94f5c6c0febca086'>^
f0e967d ^



7b78c35 ^

f0e967d ^

7b78c35 ^


f0e967d ^

7b78c35 ^


12f5fa9 ^









f0e967d ^






482d077 ^
f0e967d ^





1e33eee ^

7be2718 ^
1e33eee ^
53def09 ^
96df187 ^
61845c3 ^
96df187 ^
66b17d7 ^
feba7bf ^

d043745 ^
d202e2c ^


ec410d5 ^

96df187 ^
ec410d5 ^

d622043 ^

96df187 ^
d622043 ^
ec410d5 ^
96df187 ^
c188cd3 ^

53def09 ^



ac83252 ^



f0e967d ^












bc46cef ^
f0e967d ^

cad09c0 ^



f0e967d ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121