mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Microoptimize ReadTimeline().
This commit is contained in:
parent
124170b804
commit
b7ba64a223
@ -1561,11 +1561,11 @@ void Worker::ReadTimeline( FileRead& f, Vector<ZoneEvent*>& vec )
|
||||
f.Read( &sz, sizeof( sz ) );
|
||||
vec.reserve( sz );
|
||||
|
||||
m_data.zonesCnt += sz;
|
||||
|
||||
for( uint64_t i=0; i<sz; i++ )
|
||||
{
|
||||
auto zone = m_slab.AllocInit<ZoneEvent>();
|
||||
|
||||
m_data.zonesCnt++;
|
||||
vec.push_back( zone );
|
||||
|
||||
f.Read( &zone->start, sizeof( zone->start ) );
|
||||
|
Loading…
Reference in New Issue
Block a user