Cache menu parsing to avoid repeated loading of the same .menu
authorVincent Untz <vuntz@opensuse.org>
Mon, 19 Mar 2012 14:26:48 +0000 (15:26 +0100)
committerVincent Untz <vuntz@opensuse.org>
Mon, 19 Mar 2012 14:26:48 +0000 (15:26 +0100)
commit7e54be07567cb94b051791149679785925996e31
tree0c2e0d4ac25b5a82ffe4e4e72785de1e7bfce2d1
parent9a8d86dc150121c823889e5ba8584a726db705eb
Cache menu parsing to avoid repeated loading of the same .menu

This saves ~0.35s here on startup.

Note that we don't want to use the cache when reloading a .menu file,
but I didn't spot any such use case. If there's one, just add
use_cache=False to the call...
softwarecenter/db/categories.py