Skip to main content

hosts_cached

Function hosts_cached 

Source
pub fn hosts_cached(dir: &Path, panes: &[(String, String)]) -> Vec<String>
Expand description

The discovered hosts, cached.

Discovery is a full process scan and it answers the same thing tick after tick, since panes do not open and close on the timescale a picker refreshes on. Caching it keeps the steady-state cost of federation to reading a few small files, and keeps that cost OFF everyone else: without it a server with no ssh panes at all still pays a scan on every refresh to find that out.