Skip to content

Commit

Permalink
perf: the sorted bool flag should be first in the Unsorted struct
Browse files Browse the repository at this point in the history
for faster lookup?
  • Loading branch information
jqnatividad committed Dec 8, 2024
1 parent 2a53267 commit 4c5f28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unsorted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ where
/// is returned.
#[derive(Clone, Serialize, Deserialize, Eq, PartialEq)]
pub struct Unsorted<T> {
data: Vec<Partial<T>>,
sorted: bool,
data: Vec<Partial<T>>,
}

impl<T: PartialOrd> Unsorted<T> {
Expand Down

0 comments on commit 4c5f28c

Please sign in to comment.