Skip to content

Conversation

@Darksonn
Copy link
Contributor

As mentioned in #699 (review).

Also changes truncate to use <=. It is a no-op in that case, but I'm thinking that doing the write in that case would improve branch prediction on this branch. I think that the vast majority of callers will always pass a length that is <= self.len().

cc @paolobarbolini

@Darksonn Darksonn requested a review from braddunbar April 25, 2024 08:49
Copy link
Contributor

@braddunbar braddunbar left a comment

Choose a reason for hiding this comment

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

👏

@Darksonn Darksonn merged commit cb7f844 into master Apr 26, 2024
@Darksonn Darksonn deleted the alice/clear-setlen branch April 26, 2024 07:24
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