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

dirmonitor: fix high cpu usage, fixes #1237 #1271

Merged
merged 1 commit into from Dec 27, 2022

Conversation

jgmdev
Copy link
Member

@jgmdev jgmdev commented Dec 27, 2022

Added a delay to fsevents of 100ms when no file changes have been received and increased kqueue wait time to 100ms to prevent the high cpu usage caused by the dirmonitor thread.

Fixes #1237

@adamharrison
Copy link
Member

Makes total sense. Merging.

@adamharrison adamharrison merged commit 5fa7dab into lite-xl:master Dec 27, 2022
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Jan 16, 2023
@Guldoman Guldoman mentioned this pull request Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

High CPU usage
2 participants