summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2019-11-04 20:15:20 -0500
committerPaul Moore <paul@paul-moore.com>2019-11-11 17:42:54 -0500
commit19af04da86e9a4168a443f3563fc7aec8839edf0 (patch)
treed10a4b35e3c4923664536d61b22c9e09e4c4a64c /include
parent21b98d85e8bfdb701a5f9afd54ff5175af910a45 (diff)
downloadlibseccomp-19af04da86e9a4168a443f3563fc7aec8839edf0.tar.gz
db: add shadow transactions
Creating a transaction can be very time consuming on large filters since we create a duplicate filter tree iteratively using the rules supplied by the caller. In an effort to speed this up we introduce the idea of shadow transactions where on a successful transaction commit we preserve the old transaction checkpoint and bring it up to date with the current filter and save it for future use. The next time we start a new transaction we check to see if a shadow transaction exists, if it does we use that instead of creating a new transaction checkpoint from scratch. Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions