Branch: refs/heads/master
  Home:   https://github.com/seccomp/libseccomp
  Commit: 21b98d85e8bfdb701a5f9afd54ff5175af910a45
      
https://github.com/seccomp/libseccomp/commit/21b98d85e8bfdb701a5f9afd54ff5175af910a45
  Author: Paul Moore <[email protected]>
  Date:   2019-11-11 (Mon, 11 Nov 2019)

  Changed paths:
    M src/db.c

  Log Message:
  -----------
  db: consolidate some of the code which adds rules to a single filter

Pay back some of the technical debt in db_col_rule_add(), no logic
changes in this patch, just removing some code duplication.

Acked-by: Tom Hromatka <[email protected]>
Signed-off-by: Paul Moore <[email protected]>


  Commit: 19af04da86e9a4168a443f3563fc7aec8839edf0
      
https://github.com/seccomp/libseccomp/commit/19af04da86e9a4168a443f3563fc7aec8839edf0
  Author: Paul Moore <[email protected]>
  Date:   2019-11-11 (Mon, 11 Nov 2019)

  Changed paths:
    M src/db.c
    M src/db.h

  Log Message:
  -----------
  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 <[email protected]>
Signed-off-by: Paul Moore <[email protected]>


Compare: 
https://github.com/seccomp/libseccomp/compare/d81ac269d6be...19af04da86e9

-- 
You received this message because you are subscribed to the Google Groups 
"libseccomp" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/libseccomp/seccomp/libseccomp/push/refs/heads/master/d81ac2-19af04%40github.com.

Reply via email to