Microoptimize ReadTimeline().

This commit is contained in:
Bartosz Taudul 2018-03-15 21:27:36 +01:00
parent 124170b804
commit b7ba64a223

View File

@ -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 ) );