Closed DigitalTrustCenter closed 10 months ago
It looks like the failed CI checks also appear on other pull requests. Can we ignore the failed check?
Added a changelog entry. Surprisingly all checks pass now.
looks good to me. Thx @DigitalTrustCenter !!
Every time intelmqctl is started, the runtime yaml config is loaded twice in the init method.
This fix changes intelmqctl init so that it only loads (and parses) the runtime config once. The global settings are taken from the config that is already loaded.
This looks like a small optimization, but the current (pure python) YAML parser is quite slow. The IntelMQ manager calls the IntelMQ API. The IntelMQ API calls intelmqctl. Hence on a quite large runtime config, the manager feels sluggish.
In our test, we reduced the time it took for a single API call by 0.4 seconds with this fix.