Use query cache.

This commit is contained in:
Bartosz Taudul 2019-11-08 23:59:20 +01:00
parent ec895372b7
commit 23c59a6fc9

View File

@ -2863,8 +2863,7 @@ void Worker::NewZone( ZoneEvent* zone, uint64_t thread )
ztd.SetZone( zone );
ztd.SetThread( CompressThread( thread ) );
#else
auto cnt = GetSourceLocationZonesCnt( zone->SrcLoc() );
(*cnt)++;
CountZoneStatistics( zone );
#endif
auto td = NoticeThread( thread );
@ -5153,9 +5152,8 @@ void Worker::ReconstructZoneStatistics( ZoneEvent* zone, uint16_t thread )
#else
void Worker::CountZoneStatistics( ZoneEvent* zone )
{
auto it = m_data.sourceLocationZonesCnt.find( zone->SrcLoc() );
assert( it != m_data.sourceLocationZonesCnt.end() );
it->second++;
auto cnt = GetSourceLocationZonesCnt( zone->SrcLoc() );
(*cnt)++;
}
#endif