mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 20:03:03 +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)
|
||||
{
|
||||
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]++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user