Use LinkedList to store WorkItem to avoid additional heap allocation

This commit is contained in:
Chen Chengjun
2024-11-01 10:14:28 +08:00
committed by Tate, Hongliang Tian
parent 2ac6e0e126
commit 846b3ba169
5 changed files with 28 additions and 18 deletions

View File

@ -106,7 +106,7 @@ fn create_process_timer_callback(process_ref: &Weak<Process>) -> impl Fn() + Clo
};
let work_func = Box::new(sent_signal);
let work_item = Arc::new(WorkItem::new(work_func));
let work_item = WorkItem::new(work_func);
move || {
submit_work_item(