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

Performance optimization, avoids infinite loops #54

Closed
wants to merge 2 commits into from
Closed

Performance optimization, avoids infinite loops #54

wants to merge 2 commits into from

Conversation

XinRoom
Copy link

@XinRoom XinRoom commented Oct 20, 2021

这里的for循环会极大占用CPU,涉及大量无用的lock操作、列表遍历、时间计算等操作。
加入10ms的延时后,在我的电脑上能降低~50%的cpu占用。

#43 可能和这个问题有关

避免可能的效率影响,降低延迟到10ms。cpu占用和延时为100ms时没有区别。
@XinRoom XinRoom closed this by deleting the head repository Feb 28, 2023
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.

1 participant