Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

Hylian
Copy link
Contributor

@Hylian Hylian commented Jul 4, 2024

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
Copy link
Member

imsnif commented Jul 19, 2024

Thank you!

@imsnif imsnif merged commit b4f176f into zellij-org:main Jul 19, 2024
6 checks passed
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