Skip to content

cl/antiquary: avoid double-copying StateEvents into ETL#18668

Open
sashaodessa wants to merge 5 commits intoerigontech:mainfrom
sashaodessa:main
Open

cl/antiquary: avoid double-copying StateEvents into ETL#18668
sashaodessa wants to merge 5 commits intoerigontech:mainfrom
sashaodessa:main

Conversation

@sashaodessa
Copy link
Contributor

Remove an extra copy of StateEvents payload when writing state events into the ETL collector.
etl.Collector already copies k/v into its internal buffer. Calling events.CopyBytes() beforehand duplicated the same byte slice, adding avoidable allocations/GC work on a hot path.

@AskAlexSharov
Copy link
Collaborator

@Giulio2002 CR plz

@AskAlexSharov
Copy link
Collaborator

@domiwei CR plz

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