Inline RoomBuffer::id to avoid cloning Arcs all the time
It accounts for half the CPU time in release mode
This commit is contained in:
parent
11ce721d53
commit
afb123fa42
|
@ -588,6 +588,7 @@ impl Buffer for RoomBuffer {
|
|||
})
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn id(&self) -> BufferId {
|
||||
BufferId::Room(self.room_id.clone())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue