From 9e869d32344d5bd8ee703a0733d80d48d458217c Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Tue, 25 Jul 2023 11:16:33 -0400 Subject: VPTree: account for size of pointer array in memory usage --- include/shard/VPTree.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/shard') 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: -- cgit v1.2.3