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

优化性能 #1

Open
albertofwb opened this issue Apr 20, 2023 · 1 comment
Open

优化性能 #1

albertofwb opened this issue Apr 20, 2023 · 1 comment

Comments

@albertofwb
Copy link

https://github.com/xcanwin/XNetcat/blob/fd763aa08a405ae4be9b7bbba5aa2dbd0b68618e/xnetcat.py#L35

循环种 pass 会导致CPU空转,消耗性能。
执行脚本后,使用 top 即可发现
可以将其改为 input('')

@xcanwin
Copy link
Owner

xcanwin commented Apr 20, 2023

确实解决了CPU空转问题,欢迎提交pr

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

No branches or pull requests

2 participants