-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
networkInterfaces接口在windows下耗时比较长,需要优化 #953
Comments
我使用的版本是5.23.8 |
@HITchaos please provide all information in English! |
The main issue occurs in network.js, with two commands in getWindows IEEE8021x: |
@HITchaos Ok, thank you ... will have a look at it how I can improve this! |
主要的问题发生在network.js中,getWindowsIEEE8021x内的两条命令:
i8021xState = execSync(
netsh wlan show profiles "${ifaceSanitized}" | findstr "802.1X"
, util.execOptsWin);i8021xProtocol = execSync(
netsh wlan show profiles "${ifaceSanitized}" | findstr "EAP"
, util.execOptsWin);我的程序是GUI应用,当用户触发搜索可用网络时,getWindowsIEEE8021x处在一个循环中,调用的总次数接近10次,耗时3~5秒左右,UI会卡顿
后续我会开辟新的子进程来处理这个接口相关的功能,还是希望制作组考虑下windows下如何优化这个部分,至少不要让netsh wlan show profiles命令太多次的执行
The text was updated successfully, but these errors were encountered: