mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Reserve space for string data.
This commit is contained in:
parent
766bf45a2b
commit
4456c8a454
@ -280,6 +280,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
flat_hash_map<uint64_t, const char*, nohash<uint64_t>> pointerMap;
|
flat_hash_map<uint64_t, const char*, nohash<uint64_t>> pointerMap;
|
||||||
|
|
||||||
f.Read( sz );
|
f.Read( sz );
|
||||||
|
m_data.stringData.reserve( sz );
|
||||||
for( uint64_t i=0; i<sz; i++ )
|
for( uint64_t i=0; i<sz; i++ )
|
||||||
{
|
{
|
||||||
uint64_t ptr, ssz;
|
uint64_t ptr, ssz;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user