diff --git a/src/scanner/mod.rs b/src/scanner/mod.rs index 2ef0fe6..b7385e0 100644 --- a/src/scanner/mod.rs +++ b/src/scanner/mod.rs @@ -33,6 +33,8 @@ use tokio::time::{sleep, timeout}; const WORK_PER_TURN: usize = 128; /// Keeps the generated order, including duplicate ports, while removing exclusions. +// Keep the bitmap out of the async polling frame, which runs on every wake. +#[inline(never)] fn filter_excluded_ports(mut ports: Vec, excluded: &[u16]) -> Vec { if excluded.is_empty() { return ports;