summaryrefslogtreecommitdiff
path: root/src/shared_string.cc
AgeCommit message (Collapse)Author
2018-07-26Fix shared string registry ref count statsMaxime Coste
2017-10-10Move all non-core string code to string_utils.{hh,cc}Maxime Coste
2017-06-07Use range based accumulate wrapper instead of std::accumulateMaxime Coste
2017-03-07Replace uses of UnorderedMap with HashMapMaxime Coste
2017-02-23Refactor StringData and StringRegistry to remove need for purgingMaxime Coste
Purging unused strings could get pretty expensive with a lot of interned strings as it requiered iterating on all of them. Use a flag on the refcount of the StringData to see if the string is interned, and notify the StringRegistry in this case. This should improve the speed of editing big files with many words, such as the one described in #1195
2016-02-05dont intern SharedStrings but StringDataPtrMaxime Coste
2015-06-06Move write_debug to buffer utils as write_to_debug_bufferMaxime Coste
2015-04-16Use an UnorderedSet for string registryMaxime Coste
2015-03-30Replace various adhoc operator+ based formatting with format funcMaxime Coste
2015-01-19rename SharedString::Storage to StringStorage and use directly in BufferMaxime Coste
2015-01-19Use a single allocation for SharedString::StorageMaxime Coste
2015-01-18Replace std::shared_ptr with homemade, intrusive, ref_ptrMaxime Coste
That saves a lot of memory as sizeof(SharedString) is now one pointer less.
2015-01-15Replace InternedStrings with SharedString, shared_ptr basedMaxime Coste