From 3697548e35d8edb2558217b129db9fec89137c34 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 19 Jan 2015 13:25:04 +0000 Subject: Use a single allocation for SharedString::Storage --- src/shared_string.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared_string.cc') diff --git a/src/shared_string.cc b/src/shared_string.cc index 01104e00..52605342 100644 --- a/src/shared_string.cc +++ b/src/shared_string.cc @@ -35,7 +35,7 @@ void StringRegistry::debug_stats() const for (auto& st : m_strings) { total_refcount += st.second->refcount - 1; - total_size += (int)st.second->content.size(); + total_size += (int)st.second->length; } write_debug(" data size: " + to_string(total_size) + ", mean: " + to_string((float)total_size/count)); write_debug(" refcounts: " + to_string(total_refcount) + ", mean: " + to_string((float)total_refcount/count)); -- cgit v1.2.3