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:
parent
a0780508cc
commit
760bd071fc
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue