pub fn collect_log_queries_after_timestamp(
    all_log_queries: &[LogQuery],
    from_timestamp: Timestamp,
) -> Vec<LogQuery> {
    all_log_queries
        .iter()
        .rev()
        .take_while(|log_query| log_query.timestamp >= from_timestamp)
        .cloned()
        .collect::<Vec<LogQuery>>()
        .into_iter()
        .rev()
        .collect()
}
Collects all log queries where `log_query.timestamp >= from_timestamp`.
Denote `n` to be the number of such queries, then it works in O(n).
core/lib/multivm/src/versions/vm_m6/utils.rs