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

types/views: optimize slices contains under some conditions #11449

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

raggi
Copy link
Member

@raggi raggi commented Mar 18, 2024

In control there are conditions where the leaf functions are not being optimized away (i.e. At is not inlined), resulting in undesirable time spent copying during SliceContains. This optimization is likely irrelevant to simpler code or smaller structures.

Updates #optimization

In control there are conditions where the leaf functions are not being
optimized away (i.e. At is not inlined), resulting in undesirable time
spent copying during SliceContains. This optimization is likely
irrelevant to simpler code or smaller structures.

Updates #optimization

Signed-off-by: James Tucker <james@tailscale.com>
@raggi raggi requested a review from maisem March 18, 2024 22:07
@raggi raggi merged commit 7fe4cbb into main Mar 18, 2024
46 checks passed
@raggi raggi deleted the raggi/views-microopt branch March 18, 2024 23:19
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.

None yet

2 participants