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

perf: memorization for watching list instead of close all and rewatch #118

Closed
wants to merge 2 commits into from

Conversation

xihale
Copy link

@xihale xihale commented Feb 18, 2024

#115 & 73ec4b3

tested and get the same effect as 73ec4b3 do but perf better

/**
* 清空所有文件夹监听事件
*/
function closeAllFileWatcher() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

必须清理无用监听事件,如果用户动态更新监听文件夹的话,旧文件夹的变动仍然会触发监听函数

@xiyuesaves xiyuesaves closed this Feb 25, 2024
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.

None yet

2 participants