tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
25.72k stars 2.35k forks source link

time: remove the true_when field in TimerShared. #6563

Closed wathenjiang closed 2 months ago

wathenjiang commented 2 months ago

Since the true_when field in the TimerShared struct actually has no effect, we should remove the true_when field.

It will be a win in memory type size, which reduces the size of TimerShared from 72 bytes to 64 bytes. It should be beneficial for memory cache.