All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Improve check_assertions performance through hash tweaks
@ 2015-01-07 22:03 John Brooks
  2015-01-07 22:03 ` [PATCH 1/3] Build libsepol with -O2 John Brooks
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: John Brooks @ 2015-01-07 22:03 UTC (permalink / raw)
  To: selinux

These changes improve the performance of libsepol's avtab as used by
check_assertions, especially for large policies. On Fedora, this reduces
the time to check assertions from over an hour (I never finished!) to
about 3 minutes.

There is a lot more low-hanging performance fruit here, but this makes
a decent start - and it should allow these assertions to be enabled as
part of the policy build again.

John Brooks (3):
  Build libsepol with -O2
  Use a better hash function for libsepol's avtab
  Tweak avtab hash table parameters for better performance

 libsepol/include/sepol/policydb/avtab.h |  4 ++--
 libsepol/src/Makefile                   |  2 +-
 libsepol/src/avtab.c                    | 39 ++++++++++++++++++++++++++++-----
 3 files changed, 36 insertions(+), 9 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-01-15 18:56 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-07 22:03 [PATCH 0/3] Improve check_assertions performance through hash tweaks John Brooks
2015-01-07 22:03 ` [PATCH 1/3] Build libsepol with -O2 John Brooks
2015-01-12 17:01   ` Stephen Smalley
2015-01-07 22:03 ` [PATCH 2/3] Use a better hash function for libsepol's avtab John Brooks
2015-01-12 17:30   ` Stephen Smalley
2015-01-13  1:38     ` John Brooks
2015-01-13 13:53       ` Stephen Smalley
2015-01-07 22:03 ` [PATCH 3/3] Tweak avtab hash table parameters for better performance John Brooks
2015-01-12 17:47   ` Stephen Smalley
2015-01-12 17:55     ` Stephen Smalley
2015-01-12 20:07     ` Stephen Smalley
2015-01-13  1:25     ` John Brooks
2015-01-13 13:50       ` Stephen Smalley
2015-01-13 14:00         ` Stephen Smalley
2015-01-15  0:24 ` [PATCH v2 0/3] Improve check_assertions performance through hash tweaks John Brooks
2015-01-15  0:24   ` [PATCH v2 1/3] Build libsepol with -O2 John Brooks
2015-01-15  0:24   ` [PATCH v2 2/3] Use a better hash function for libsepol's avtab John Brooks
2015-01-15  0:24   ` [PATCH v2 3/3] Tweak avtab hash table parameters for better performance John Brooks
2015-01-15 18:56   ` [PATCH v2 0/3] Improve check_assertions performance through hash tweaks Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.