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

chore: simplify CloneBatch code #3862

Merged
merged 1 commit into from
Oct 4, 2024
Merged

chore: simplify CloneBatch code #3862

merged 1 commit into from
Oct 4, 2024

Conversation

romange
Copy link
Collaborator

@romange romange commented Oct 4, 2024

Remove awkward fetch_tail case and streamline the code. Fix invalid prefetch adresses. Performance improved a little.

Before:
BM_Fill/elements:32000 874677 ns 874647 ns 4774

After:
BM_Fill/elements:32000 831786 ns 831761 ns 5111

@romange romange requested a review from kostasrim October 4, 2024 08:15
Remove awkward fetch_tail case and streamline the code.
Fix invalid prefetch adresses. Performance improved a little.

Before:
`BM_Fill/elements:32000     874677 ns       874647 ns         4774`

After:
`BM_Fill/elements:32000     831786 ns       831761 ns         5111`

Also added a benchmark for Clear() operation.

Signed-off-by: Roman Gershman <[email protected]>
Copy link
Contributor

@kostasrim kostasrim left a comment

Choose a reason for hiding this comment

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

LGTM

@romange romange merged commit 819f6e1 into main Oct 4, 2024
9 checks passed
@romange romange deleted the Pr1 branch October 4, 2024 09:08
kostasrim pushed a commit that referenced this pull request Oct 7, 2024
Remove awkward fetch_tail case and streamline the code.
Fix invalid prefetch adresses. Performance improved a little.

Before:
`BM_Fill/elements:32000     874677 ns       874647 ns         4774`

After:
`BM_Fill/elements:32000     831786 ns       831761 ns         5111`

Also added a benchmark for Clear() operation.

Signed-off-by: Roman Gershman <[email protected]>
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