Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aristo lazily delete larger subtrees #2560

Merged
merged 7 commits into from
Aug 14, 2024
Merged

Conversation

mjfh
Copy link
Contributor

@mjfh mjfh commented Aug 13, 2024

No description provided.

why:
  This gives some control of the memory used to keep the deleted vertices
  in the cached layers. For larger sub-trees, keys and vertices might be
  on the persistent backend to a large extend. This would pull an amount
  of extra information from the backend into the cached layer.

  For lazy deleting it is enough to remember sub-trees by a small set of
  (at most 16) sub-roots to be processed when storing persistent data.
  Marking the tree root deleted immediately allows to let most of the code
  base work as before.
why:
  That `fluffy` would not run with any logging in `core_deb` is a problem
  I have known for a while. Up to now, logging was only used for debugging.

  With the current `Aristo` PR, there are cases where logging might be
  wanted but this works only if `chronicles` runs without the
  `json[dynamic]` sinks.

  So this should be re-visited.
@arnetheduck
Copy link
Member

This PR adds 500 lines of code, but I'm not convinced the added complexity is worth the benefit, specially given that there are more efficient ways of implementing the same thing - it should probably be reconsidered.

@mjfh
Copy link
Contributor Author

mjfh commented Aug 13, 2024

This PR adds 500 lines of code, but I'm not convinced the added complexity is worth the benefit, specially given that there are more efficient ways of implementing the same thing - it should probably be reconsidered.

Actually not. After cleaning up conditional code there will be about 150 or less lines left (much of it comments).

@mjfh mjfh merged commit ce713d9 into master Aug 14, 2024
15 checks passed
@mjfh mjfh deleted the aristo-lazily-delete-larger-subtrees branch August 14, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants