Reserve space for string data.

This commit is contained in:
Bartosz Taudul 2018-07-29 14:13:29 +02:00
parent 766bf45a2b
commit 4456c8a454

View File

@ -280,6 +280,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
flat_hash_map<uint64_t, const char*, nohash<uint64_t>> pointerMap;
f.Read( sz );
m_data.stringData.reserve( sz );
for( uint64_t i=0; i<sz; i++ )
{
uint64_t ptr, ssz;