commit | d21ec5a5605f708b70e0b685b76f03a978f2008c | [log] [tgz] |
---|---|---|
author | Adam Tkac <atkac@redhat.com> | Fri May 25 17:42:08 2012 +0200 |
committer | Eric Paris <eparis@redhat.com> | Thu Jun 28 11:21:15 2012 -0400 |
tree | 426dd5bd1101140372550d7ee5cc52bfdb8cb362 | |
parent | c43f5b1d34d9cbdc767254046d9b7e0ab47b866d [diff] |
libsepol: prepend instead of append to filename_trans list Currently expand_filename_trans() function use much CPU time to find end of the state->out->filename_trans list. This is not needed because data can be prepended instead of appended to the list. This ends with 10% speed-up of various se* commands (semodule, setsebool). Signed-off-by: Adam Tkac <atkac@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>