Skip to content

Instantly share code, notes, and snippets.

@icristescu
Last active May 6, 2020 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icristescu/6224c47593b273b83a254b222e3d0ca8 to your computer and use it in GitHub Desktop.
Save icristescu/6224c47593b273b83a254b222e3d0ca8 to your computer and use it in GitHub Desktop.

current

Two proposals for a layered store with two lower stores:

  • one lower (called lower_new) is used until it is full, at which point the other lower (called lower_old) is cleared and it becomes lower_new:

prop1

  • one lower contains everything (called lower_all), while a second lower (called lower_latest) contains only the latest additions. lower_latest is cleared and refilled at each freeze.

prop2

In both cases, each lower is self contained, but not the upper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment