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

feat: replace RangeInclusive with SegmentRangeInclusive on SegmentHeader #6446

Merged
merged 7 commits into from
Feb 8, 2024

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Feb 6, 2024

closes #6185

Should avoid multiple RangeInclusive allocations when writing on append_receipt / append_tx / increment_block

@joshieDo joshieDo changed the title feat: feat: replace RangeInclusive with SegmentRangeInclusive on SegmentHeader Feb 6, 2024
@joshieDo joshieDo added the A-static-files Related to static files label Feb 6, 2024
}

/// Returns a [`RangeInclusive`] representation
pub fn std_range(&self) -> RangeInclusive<u64> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we just do an Into<RangeInclusive<u64>> implementation instead?

@joshieDo joshieDo marked this pull request as ready for review February 8, 2024 11:29
@joshieDo joshieDo merged commit ffa64ec into feat/static-files Feb 8, 2024
22 of 24 checks passed
@joshieDo joshieDo deleted the joshie/segment-header branch February 8, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-static-files Related to static files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants