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

同一行貼很多http 時 ,會有卡死的現象。 #20

Open
cake654326 opened this issue Oct 14, 2017 · 2 comments
Open

同一行貼很多http 時 ,會有卡死的現象。 #20

cake654326 opened this issue Oct 14, 2017 · 2 comments

Comments

@cake654326
Copy link

cake654326 commented Oct 14, 2017

在某些情況下 CPU 會100%

在編輯模式中 在同一行貼入包含很多 http 的詞時,會發生卡死的狀況。

複製下面 貼個2~3次 可能就會卡死。

--with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http --with-http

從 chrome 開發工具中得知 似乎是 : RegExp: (.?)((?:https.?)(\/pe*\/[a-z0-9]{24}#([^:][^\s]+)))(.*)

原本的工作似乎是

當打很多 http 時,速度似乎會慢很多

希望可以解決這個小問題,這個系統很好用。

謝謝

@lealife
Copy link
Member

lealife commented Sep 19, 2018

多谢, 这种情况下确实性能有问题, 但不多见

@cake654326
Copy link
Author

您好,
建議在 ace2/main.js 中 var X = /(.?)((?:https.?)(/pe*/[a-z0-9]{24}#([^:][^\s]+)))(.*)/, 之前 加入 單一字串 "https" 檢測,再執行 var X... 之後程式

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