Update get_cwd() to only refresh process specifics for the given PID, matching the get_cwds() implementation.
This significantly reduces the latency of opening a new Pane or Tab.
On a 64-core Threadripper system, this reduces the latency of get_cwd() from 850ms to 1ms. On an 8-core Ryzen system, the improvement is smaller, but still perceptible.
Update
get_cwd()
to only refresh process specifics for the given PID, matching theget_cwds()
implementation.This significantly reduces the latency of opening a new Pane or Tab.
On a 64-core Threadripper system, this reduces the latency of
get_cwd()
from 850ms to 1ms. On an 8-core Ryzen system, the improvement is smaller, but still perceptible.