62eb1996d9
This patch adds 2 methods on `RoomInfo`: `new_latest_event_timestamp` and `new_latest_event_is_local`, which respectively returns `LatestEventValue::timestamp` and `LatestEventValue::is_local`. The goal is to avoid cloning a `LatestEventValue` when it's useless. For example, in the room list sorters! This patch also updates the room list sorters `recency` and `latest_event` to use these new methods. It improves the speed and throughput by 18%.