Commit fd258a0
authored
webapp: use __slots__ to save memory (#2193)
* webapp: use __slots__ to save memory
Saves around 1/3 of memory when loading functions measured by
pympler/asizeof. We should apply this on the rest of the data structures
as well, but we should make sure the fields in those are not assigned at
any point.
Signed-off-by: David Korczynski <[email protected]>
* nit
Signed-off-by: David Korczynski <[email protected]>
---------
Signed-off-by: David Korczynski <[email protected]>1 parent b252958 commit fd258a0
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
| |||
0 commit comments