-
Notifications
You must be signed in to change notification settings - Fork 193
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
Sometimes File search cannot be canceled #2571
Comments
follow up exceptions on shutdown:
|
Turns out the java pattern matcher is just damn slow to match the pattern
|
@jukzi see for example here: quoted from there:
So I don't think there is java to blame... |
Lets find a solution: In this case it much faster to match |
Maybe search can be smarter to use In you case you should have searched for |
By the way for this particular case one might optimize the dialog to strip of any starting or ending |
That is not valid, as the result either also contains the characters before (*) or skip it |
yes, but i am a dump lazy user, that just copy pasted a text into a search field and had to restart eclipse. |
I don't understand... if I search for "* something" or for " something" is the same result, in both cases it searches for a space and then "something" to match ...
|
Not a bug at all. You need to define your task first, understand what you want to achieve, what inputs you have and what checks you need to run against the input. Once you get that, you will know that you either need to precise the regex (=define it manually) or do something else (implement multiprocessing, etc.). |
@jukzi Can you conduct the same experiment with https://github.com/google/re2j ? |
@szarnekow great idea, |
@laeubi try to search "*main" vs "main" |
google/re2j#168 sounds dangerous, not production ready :-( |
For example searching for
* 1_000_000;
in Platform workspace hangs in C:\Users\jkubitz\platform-2024-09-23\git\p2\bundles\org.eclipse.equinox.p2.tests\testData\sat4j\Bug247638.opbThe text was updated successfully, but these errors were encountered: