Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline getters in impl of Transaction #1642

Merged
merged 5 commits into from
Nov 14, 2024
Merged

Inline getters in impl of Transaction #1642

merged 5 commits into from
Nov 14, 2024

Conversation

emhane
Copy link
Contributor

@emhane emhane commented Nov 13, 2024

Motivation

Avoid call overhead for transaction getters, also for compilation without LTO. Getters are expected to be hot paths with generalisation of data primitives in reth. To my understanding, that may make profiling rather cluttered and less meaningful (since releases are built with maxperf lto = fat).

Solution

Inline getters in impl of alloy_consensus::Transaction

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@emhane emhane enabled auto-merge (squash) November 14, 2024 16:18
@emhane emhane merged commit 2ab90d3 into main Nov 14, 2024
26 checks passed
@emhane emhane deleted the emhane/inline-getters branch November 14, 2024 16:24
@harunfox72s
Copy link

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.

3 participants