1
0
Fork 0
mirror of https://github.com/azalea-rs/simdnbt.git synced 2025-08-02 23:44:40 +00:00

always inline MainTape::push for small speedup

This commit is contained in:
mat 2025-01-26 22:17:32 +00:00
commit 760bd071fc

View file

@ -26,7 +26,7 @@ pub struct MainTape<A: Allocator = alloc::Global> {
alloc: A,
}
impl<A: Allocator> MainTape<A> {
#[inline]
#[inline(always)]
pub fn push(&mut self, element: TapeElement) {
if self.cur == self.end {
let old_cap = self.capacity();