Bug 31895 - System-Setup is slow
System-Setup is slow
Status: RESOLVED DUPLICATE of bug 34484
Product: UCS
Classification: Unclassified
Component: System setup
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.x
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-04 12:31 CEST by Florian Best
Modified: 2018-04-14 13:37 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Patch for util.py (1007 bytes, patch)
2013-07-04 12:59 CEST, Alexander Kläser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2013-07-04 12:31:29 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).
Comment 1 Alexander Kläser univentionstaff 2013-07-04 12:59:04 CEST
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.
Comment 2 Florian Best univentionstaff 2013-07-04 13:49:29 CEST
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
Comment 3 Florian Best univentionstaff 2014-07-25 11:29:55 CEST
function has been removed in Bug #34484

*** This bug has been marked as a duplicate of bug 34484 ***