Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Offline FW performance: share gold model and security arbiter across lens invocations #45

Open
bergmanngabor opened this issue Feb 26, 2016 · 0 comments

Comments

@bergmanngabor
Copy link
Contributor

There are two use cases where many offline lens operations with the same gold model are performed in succession:

  • when doing a commit to a front repo, a PUTBACK is performed first, and then many GETs to propagate the update
  • "reset from gold", GETting all front repos from the gold repo

In these cases, we could save some time by...

  • loading the gold model,
  • loading the policy model, and
  • setting up the security arbiter...

...only once for this bunch of lens executions. This optimization, however, clearly requires some redesign of the offline daemon API + the hook scripts.

Note that the online FW already does this.

Warning: commits can update the MACL file. Using this shared arbiter for the PUTBACK operation should be allowed only if the MACL file is already updated by the commit (and we have already verified that it is allowed to be updated) at the time the lens are executed. If this cannot be made sure, apply the optimization for the GETs only.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant