Skip to content

Conversation

@noha
Copy link
Contributor

@noha noha commented Jul 31, 2025

No description provided.

@noha noha requested a review from MarcusDenker July 31, 2025 21:08
Copy link
Contributor

@MarcusDenker MarcusDenker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is recursive version of sizeInMemory.

To improve (but I think not really needed for this use in Soil):

  • Slots that are virtual (but that is not used in real code, thus we can ignore it for now and just filter for them if we would use them)
  • Objects that have some variable layout but not inherit from Collection (but for those we can just implement #soilSizeInMemory if needed).

I guess idea to improve could be to delegate iteration to the Layout, this could be done for both for iterating over variable size objects and the slots.

@noha
Copy link
Contributor Author

noha commented Aug 1, 2025

Not sure we need a PhD about it 😉 This is only used by persitent cluster to measure how much is cached in memory. So only usable if it is certain there are no loops etc.

@noha noha changed the base branch from main to v3 October 8, 2025 10:33
@noha noha merged commit 77f6b08 into v3 Oct 8, 2025
4 checks passed
@noha noha deleted the improve-soilsizeinmemory branch October 15, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants