diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2023-07-25 11:16:33 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2023-07-25 11:16:33 -0400 |
| commit | 9e869d32344d5bd8ee703a0733d80d48d458217c (patch) | |
| tree | 01c34169b8fec31eafbadc3b48be686d171ada3e | |
| parent | 64959d4ff45b81d94155f44b4ae9b010f05089fe (diff) | |
| download | dynamic-extension-9e869d32344d5bd8ee703a0733d80d48d458217c.tar.gz | |
VPTree: account for size of pointer array in memory usage
| -rw-r--r-- | include/shard/VPTree.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/shard/VPTree.h b/include/shard/VPTree.h index 03645db..6f0423b 100644 --- a/include/shard/VPTree.h +++ b/include/shard/VPTree.h @@ -232,9 +232,8 @@ public: return m_data + idx; } - size_t get_memory_usage() { - return m_node_cnt * sizeof(vpnode); + return m_node_cnt * sizeof(vpnode) + m_reccnt * sizeof(R*); } private: |