8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 20:03:03 +01:00

Small optimization.

This commit is contained in:
dimitr 2007-03-23 13:50:17 +00:00
parent 98b12c3cd6
commit 7418224c16

View File

@ -44,11 +44,9 @@ void RuntimeStatistics::setParent(RuntimeStatistics* p)
void RuntimeStatistics::bumpValue(size_t index)
{
fb_assert(index < values.getCount());
values[index]++;
if (parent) {
parent->bumpValue(index);
for (RuntimeStatistics* stats = this; stats; stats = stats->parent) {
fb_assert(index < stats->values.getCount());
stats->values[index]++;
}
}