Commit 19002ab
committed
fix: correct DictEncoder::estimated_memory_size
The returned value should estimate the actual memory usage, but
instead it used the evaluation of the encoded size of the dictionary
data, and bypassed the hash table memory usage added by the Interner.
The implementation of Storage::estimated_memory_size for the
unique key storage was not correct as well, but it was unused.
Correct both problems.1 parent 88b7fca commit 19002ab
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
0 commit comments