diff options
| author | mat <git@matdoes.dev> | 2026-03-06 18:37:50 -1245 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-06 22:38:27 -0845 |
| commit | 75a7ec5f2989073a3534f377bfeb0d23de844593 (patch) | |
| tree | 00f355dd5ba23356ced696c4f5d1a6a2ce9c2d16 /azalea-world/src/bit_storage.rs | |
| parent | 8dc511bb1b77da67d5428e8bafeab92ad3bfabf4 (diff) | |
| download | azalea-drasl-75a7ec5f2989073a3534f377bfeb0d23de844593.tar.xz | |
speed up PalettedContainer::get_at_index by inlining things
Diffstat (limited to 'azalea-world/src/bit_storage.rs')
| -rw-r--r-- | azalea-world/src/bit_storage.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-world/src/bit_storage.rs b/azalea-world/src/bit_storage.rs index cefc0aeb..4e858413 100644 --- a/azalea-world/src/bit_storage.rs +++ b/azalea-world/src/bit_storage.rs @@ -167,6 +167,7 @@ impl BitStorage { /// /// This function will panic if the given index is greater than or equal to /// the size of this storage. + #[inline] pub fn get(&self, index: usize) -> u64 { assert!( index < self.size, |
