Fix the missing rax itself when estimating Radix tree memory usage
This commit is contained in:
parent
e792653753
commit
02f12e8860
|
@ -987,7 +987,7 @@ char *strEncoding(int encoding) {
|
|||
* to compress prefixes. */
|
||||
size_t streamRadixTreeMemoryUsage(rax *rax) {
|
||||
size_t size = sizeof(*rax);
|
||||
size = rax->numele * sizeof(streamID);
|
||||
size += rax->numele * sizeof(streamID);
|
||||
size += rax->numnodes * sizeof(raxNode);
|
||||
/* Add a fixed overhead due to the aux data pointer, children, ... */
|
||||
size += rax->numnodes * sizeof(long)*30;
|
||||
|
|
Loading…
Reference in New Issue