aboutsummaryrefslogtreecommitdiff
path: root/azalea-registry/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-30 00:02:36 +0500
committermat <git@matdoes.dev>2026-01-30 00:02:36 +0500
commit6c0be6913dd0bcbb7e17a3e2a4daa45fcc8f5103 (patch)
tree6e09534e5f9119da4bf0712560bde892b49b5384 /azalea-registry/src
parentb0d0bd17f5978abb4e69ce5391622799e2185992 (diff)
downloadazalea-drasl-6c0be6913dd0bcbb7e17a3e2a4daa45fcc8f5103.tar.xz
warn if pathfinder is running without optimizations, and other minor fixes
Diffstat (limited to 'azalea-registry/src')
-rw-r--r--azalea-registry/src/tags/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-registry/src/tags/mod.rs b/azalea-registry/src/tags/mod.rs
index 640d119b..f2cb6fe3 100644
--- a/azalea-registry/src/tags/mod.rs
+++ b/azalea-registry/src/tags/mod.rs
@@ -41,9 +41,9 @@ impl<R: Registry + 'static> RegistryTag<R> {
// TODO: tune this number; when does binary search actually start making a
// difference?
if self.entries.len() > 64 {
- self.linear_search_find(value)
- } else {
self.binary_search_find(value)
+ } else {
+ self.linear_search_find(value)
}
}
fn linear_search_find(&self, value: &R) -> Option<usize> {