Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigItem::GetItems(): cache result #9582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Al2Klimov
Copy link
Member

to avoid malloc(), refcounts and lock waits.

@Al2Klimov Al2Klimov self-assigned this Nov 15, 2022
@cla-bot cla-bot bot added the cla/signed label Nov 15, 2022
lib/base/scriptutils.cpp Outdated Show resolved Hide resolved
@Al2Klimov
Copy link
Member Author

(Almost +1 minute additionally, yay.)

@Al2Klimov
Copy link
Member Author

Before/after, time icinga2 daemon -C

f59f361
real 36m38.277s
user 196m31.058s
sys 71m49.837s

real 35m14.356s
user 190m16.353s
sys 68m23.075s

real 35m35.668s
user 192m36.516s
sys 68m44.489s

70d432d
real 34m21.486s
user 181m32.399s
sys 70m31.209s

real 35m12.037s
user 186m11.483s
sys 70m50.715s

real 34m35.143s
user 184m41.342s
sys 69m19.343s

@Al2Klimov Al2Klimov removed their assignment Jan 31, 2023
to avoid malloc(), refcounts and lock waits.
@Al2Klimov Al2Klimov force-pushed the ConfigItem-GetItems branch from 70d432d to 7346d40 Compare February 3, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants