You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main issue occurs in network.js, with two commands in getWindows IEEE8021x:
i8021xState = execSync(netsh wlan show profiles "${ifaceSanitized}" | findstr "802.1X", util.execOptsWin);
i8021xProtocol = execSync(netsh wlan show profiles "${ifaceSanitized}" | findstr "EAP", util.execOptsWin);
My program is a GUI application. When the user triggers to search the available network, getWindowsIEEE8021x is in a cycle, and the total number of calls is close to 10, which takes about 3-5 seconds, and the UI will get stuck
I will create new sub processes to handle the interface related functions in the future. I hope the production team can consider how to optimize this part under Windows, at least not to make the Netsh WLAN show profiles command execute too many times
主要的问题发生在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: