Skip to content

Conversation

jim0987795064
Copy link
Contributor

  • Changes: Each append now writes to a new MemoryRecords batch instead of reusing a single batch object.

  • Reasons: If we reuse the same batch, its baseoffset will keep accumulating.

  • Performance demonstration:

original performance:
image
new performance:
image

There is no significant impact on performance after applying new method of writing info to log.

@github-actions github-actions bot added triage PRs from the community performance labels Sep 30, 2025
MemoryRecords messages;
UnifiedLog log;
Compression compression;
List<SimpleRecord> recordsList;
Copy link
Member

Choose a reason for hiding this comment

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

Could you please convert it to array type to avoid creating many array?

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

Successfully merging this pull request may close these issues.

2 participants