The App looks stuck with 100% cpu load (8 cores) when searching for this (bad?) regex:
Code: Select all
.+.+aaMy Search settings are
- Match Path
- Enable Regex
- Everything
Code: Select all
.+.+aaright - it was a misprint, I meant /.+aa/void wrote: Tue Aug 31, 2021 11:44 pm The two .+ patterns are a recursive nightmare.
Additional .+ patterns exacerbates the issue.
I think it would be great if the App could detect such cases proposing to cancel the search after some time (10 seconds? can be optional/configurable in Settings)
path:regex:.+aaright - it was a misprint, I meant /.+aa/
I will consider an option to do this.I think it would be great if the App could detect such cases proposing to cancel the search after some time (10 seconds? can be optional/configurable in Settings)
@MrCricketvoid wrote: Thu Sep 02, 2021 10:19 am path:regex:.aa would produce the same results much faster.
Maybe Everything could look at optimizing .+aa to .aa or ^.+aa
Although, .aa would affect highlighting.
Everything already tries to optimize some search patterns.@void
As an option `everything` can block search and replace greedy patterns with non-greedy ones. In this case user input .+aa will be replaced with .+?aa and the user should select whether agree with wizard-adviced regexp or continue with greedy search. User should have the choice because non-greedy regexp is not exactly the same (in this case for highlighting, but the searches could be performed in file text and they will be more complex) so that user might be disappointed with silent transformation that breaks search.