Univention Bugzilla – Bug 31895
System-Setup is slow
Last modified: 2018-04-14 13:37:08 CEST
When validate, initial load, saving, join the function util.load_values() will be called, which calls get_installed_components which checks the whole APT-Cache. The function is also uselessly called twice in Instance.save(). This takes 7 seconds and is very disturbing. # time python -c 'import univention.management.console.modules.setup.util as u; u.get_installed_components()' real 0m7.555s user 0m1.172s sys 0m0.060s This should be somehow optimized (e.g. caching).
Created attachment 5303 [details] Patch for util.py This patch optimizes the loading. The problem here is that first all installed packages are fetched. The patch only fetches all installed component packages.
The patch makes it 2.4 seconds faster. time python -c 'import univention.management.console.modules.setup.util as u; u.get_installed_components()' real 0m5.130s user 0m0.668s sys 0m0.080
function has been removed in Bug #34484 *** This bug has been marked as a duplicate of bug 34484 ***