Skip to content

Minor: remove an unecessary clone in common_sort_prefix_length#72

Merged
berkaysynnada merged 1 commit intosynnada-ai:required-input-orderingfrom
alamb:alamb/tweaks_to_input
Jun 3, 2025
Merged

Minor: remove an unecessary clone in common_sort_prefix_length#72
berkaysynnada merged 1 commit intosynnada-ai:required-input-orderingfrom
alamb:alamb/tweaks_to_input

Conversation

@alamb
Copy link

@alamb alamb commented Jun 3, 2025

This is a minor suggestion that trgets apache#16217 and avoids a clone

Merging it will update apache#16217

// If the ordering vanishes after normalization, it is satisfied:
return Ok((vec![], true));
};
let prefix_len = self.common_sort_prefix_length(normal_ordering.clone())?;
Copy link
Author

Choose a reason for hiding this comment

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

The point of this PR is to remove this clone

@berkaysynnada berkaysynnada merged commit 1aebf24 into synnada-ai:required-input-ordering Jun 3, 2025
1 check passed
@berkaysynnada
Copy link
Collaborator

Thank you @alamb ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants