mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 23:23:04 +01:00
Small optimization.
This commit is contained in:
parent
98b12c3cd6
commit
7418224c16
@ -44,11 +44,9 @@ void RuntimeStatistics::setParent(RuntimeStatistics* p)
|
|||||||
|
|
||||||
void RuntimeStatistics::bumpValue(size_t index)
|
void RuntimeStatistics::bumpValue(size_t index)
|
||||||
{
|
{
|
||||||
fb_assert(index < values.getCount());
|
for (RuntimeStatistics* stats = this; stats; stats = stats->parent) {
|
||||||
values[index]++;
|
fb_assert(index < stats->values.getCount());
|
||||||
|
stats->values[index]++;
|
||||||
if (parent) {
|
|
||||||
parent->bumpValue(index);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user