Skip to content

fix(terminal): only refresh process specifics for given PID in get_cwd() - #3472

Merged
imsnif merged 1 commit into
zellij-org:mainfrom
Hylian:hylian/pane-latency
Jul 19, 2024
Merged

imsnif merged 1 commit into
zellij-org:mainfrom
Hylian:hylian/pane-latency

Conversation

@Hylian

@Hylian Hylian commented Jul 4, 2024

Copy link
Copy Markdown
Contributor

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 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.
@imsnif imsnif self-assigned this Jul 4, 2024
@imsnif

imsnif commented Jul 19, 2024

Copy link
Copy Markdown
Member

Thank you!

@imsnif
imsnif merged commit b4f176f into zellij-org:main Jul 19, 2024
Tomcat-42 pushed a commit to Tomcat-42/zellij that referenced this pull request Nov 9, 2024
…d() (zellij-org#3472)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants