Skip to content

refactor: Simplify heap size estimation for types that own no heap allocations#22918

Open
mkleen wants to merge 1 commit into
apache:mainfrom
mkleen:simplify-heapsize
Open

refactor: Simplify heap size estimation for types that own no heap allocations#22918
mkleen wants to merge 1 commit into
apache:mainfrom
mkleen:simplify-heapsize

Conversation

@mkleen

@mkleen mkleen commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes None.

Rationale for this change

This pr simplifies heap size estimation by using a macro for types that own no heap allocations.
This removes a lot of redundant code.

What changes are included in this PR?

See above.

Are these changes tested?

Yes, previous tests are passing and more tests are added.

Are there any user-facing changes?

No.

@github-actions github-actions Bot added the common Related to common crate label Jun 11, 2026
@mkleen mkleen changed the title Simplify heap_size estimation by using a macro for zero allocation types Simplify heap size estimation by using a macro for types that own no heap allocations Jun 11, 2026
@mkleen mkleen force-pushed the simplify-heapsize branch from 621f82e to 75222f9 Compare June 11, 2026 19:41
@mkleen mkleen marked this pull request as ready for review June 11, 2026 19:43
@mkleen mkleen changed the title Simplify heap size estimation by using a macro for types that own no heap allocations Simplify heap size estimation for types that own no heap allocations Jun 11, 2026
@mkleen mkleen force-pushed the simplify-heapsize branch 2 times, most recently from 0b3e8d9 to 3aaf6ed Compare June 11, 2026 19:59
@mkleen

mkleen commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@kosiew Do you have maybe time for a review of this? Thanks

@mkleen mkleen changed the title Simplify heap size estimation for types that own no heap allocations refactor: Simplify heap size estimation for types that own no heap allocations Jun 12, 2026
@mkleen mkleen changed the title refactor: Simplify heap size estimation for types that own no heap allocations refactor: simplify heap size estimation for types that own no heap allocations Jun 12, 2026
@mkleen mkleen force-pushed the simplify-heapsize branch from 3aaf6ed to c99167e Compare June 12, 2026 05:48
@mkleen mkleen changed the title refactor: simplify heap size estimation for types that own no heap allocations refactor: Simplify heap size estimation for types that own no heap allocations Jun 12, 2026
@mkleen mkleen force-pushed the simplify-heapsize branch from c99167e to f93b6ae Compare June 12, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to common crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant