Skip to content

Conversation

Forostovec
Copy link
Contributor

Change emit_log to build the request buffer in-place by inserting the 4-byte topics header at the start of the existing Vec using reserve + copy_within. This removes the additional allocation and memcpy from creating a separate request buffer. It preserves the protocol (u32 topics followed by topic hashes and payload) and eliminates the TODO about removing the copy, reducing overhead on frequent log emissions.

@eljobe eljobe self-assigned this Sep 22, 2025
@gligneul
Copy link
Contributor

Duplicate of #3500

@gligneul gligneul marked this as a duplicate of #3500 Sep 25, 2025
@gligneul gligneul closed this Sep 25, 2025
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.

4 participants