Closed vmojzis closed 1 year ago
Commit 7506771e4b630fe0ab853f96574e039055cb72eb "add missing booleans to man pages" dramatically slowed down "sepolicy manpage -a" by removing caching of setools rule query. Re-add said caching and update the query to only return conditional rules.
Before commit 7506771e:
real 1m43.153s
real 0m4.493s
After commit 7506771e:
real 1h56m43.153s
real 0m8.352s
After this commit:
real 1m41.074s
real 0m7.358s
Signed-off-by: Vit Mojzis vmojzis@redhat.com
Commit 7506771e4b630fe0ab853f96574e039055cb72eb "add missing booleans to man pages" dramatically slowed down "sepolicy manpage -a" by removing caching of setools rule query. Re-add said caching and update the query to only return conditional rules.
Before commit 7506771e:
time sepolicy manpage -a
real 1m43.153s
time sepolicy manpage -d httpd_t
real 0m4.493s
After commit 7506771e:
time sepolicy manpage -a
real 1h56m43.153s
time sepolicy manpage -d httpd_t
real 0m8.352s
After this commit:
time sepolicy manpage -a
real 1m41.074s
time sepolicy manpage -d httpd_t
real 0m7.358s
Signed-off-by: Vit Mojzis vmojzis@redhat.com