diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-01-19 13:25:04 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-01-19 13:25:04 +0000 |
| commit | 3697548e35d8edb2558217b129db9fec89137c34 (patch) | |
| tree | 4935955dd90fbdca94c774cc8ff0097e867de756 /src/shared_string.cc | |
| parent | 39689f0a1806f49c47f6fa65163dba4ae901d839 (diff) | |
Use a single allocation for SharedString::Storage
Diffstat (limited to 'src/shared_string.cc')
| -rw-r--r-- | src/shared_string.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |
