diff options
author | Aleix Pol <aleixpol@kde.org> | 2021-07-01 02:50:55 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2021-07-04 17:22:45 +0200 |
commit | 93c9398cdcf147c5c5e1a89662ffd047e36927ac (patch) | |
tree | 52b09ee245368e799a2c1b60028fd2d99f484adb /src/core/kconfigini.cpp | |
parent | 74a861c5617621663b1d5d8a1cd79c7a0eef9d8a (diff) | |
download | kconfig-93c9398cdcf147c5c5e1a89662ffd047e36927ac.tar.gz kconfig-93c9398cdcf147c5c5e1a89662ffd047e36927ac.tar.bz2 |
Cache global config files
Whenever we read a config file, we are first parsing kdeglobalsrc. This
caches the parsed entries so that they can be reused as long as it
hasn't changed.
This reduces the parseConfig calls (which is mostly prominent at
early process startup) from 18 to 12 (33%) ksmserver-logout-greeter.
This also means there's better cache locality as well as less memory
allocated as a lot of objects are shared but I have not measured this.
Diffstat (limited to 'src/core/kconfigini.cpp')
0 files changed, 0 insertions, 0 deletions