Inline RoomBuffer::id to avoid cloning Arcs all the time
Some checks failed
CI / Build and test (, beta) (push) Waiting to run
CI / Build and test (, nightly) (push) Waiting to run
CI / lint (push) Failing after 40s
CI / Build and test (, 1.73.0) (push) Has been cancelled

It accounts for half the CPU time in release mode
This commit is contained in:
Val Lorentz 2023-12-17 17:53:47 +01:00
parent 11ce721d53
commit afb123fa42

View File

@ -588,6 +588,7 @@ impl Buffer for RoomBuffer {
})
}
#[inline]
fn id(&self) -> BufferId {
BufferId::Room(self.room_id.clone())
}