Commit fa4f822
committed
Revert "Memoize entity encoding"
This reverts commit f5bae9e.
Because we cannot forsee the length and amount of strings we need to
be more careful about keeping them around as memory consumption
can grow unbounded. In the future we should check if we can use
a limited cache, only cache attributes or something else. WeakMaps
unfortunately won't help as they cannot be used with primitives as
cache key.1 parent b6f6fc7 commit fa4f822
1 file changed
+2
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 1 | | |
19 | 2 | | |
20 | 3 | | |
| |||
26 | 9 | | |
27 | 10 | | |
28 | 11 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 12 | + | |
35 | 13 | | |
36 | 14 | | |
37 | | - | |
| 15 | + | |
38 | 16 | | |
39 | 17 | | |
40 | 18 | | |
| |||
0 commit comments