Community
Participate
Working Groups
"Search File..." is slower then needed. There are several performance improvements possible on file search. I will propose some.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185193
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185194
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185195
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185196
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185198
Thanks Jörg, can you assign the bug to yourself and set the milestone as 4.22 M1?
(In reply to Lars Vogel from comment #6) > Thanks Jörg, can you assign the bug to yourself and set the milestone as > 4.22 M1? No. Such requires committer rights. You can assign to me please.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185194 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=90da03e2e035d5d1b6404c463de8a0a5fbaa0f43
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185262
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185262 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=6a3a61390d102c5bcf7aec1fa61af24c7df0953e
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185270
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185271
And with all those changes together we have a true concurrent and fast search and fast UI. No more changes planed.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185193 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=e5b5814ba9b6f497470b731ddb919224046d6d1a
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185198 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=40480fd074c7855d6df0015163f3df254c716a35
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185271 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=1cb468e2e5862645e7d02d05c420118131018cfc
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185270 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=4d9292f2c3627512855770ef151e7ac369316b3f
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185195 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=60e9c94534cbfa3ec5ea59b66d18dd9d15f3ed0d
Due to changes here, we observe unstable element order returned by this method: org.eclipse.search.ui.text.AbstractTextSearchResult.getMatches(Object) Considering that this is API and not an internal class/method, this might be a problem. The search result view itself shows stable and correct ordering. In our case only tests use AbstractTextSearchResult.getMatches() (and so fail sporadically). I guess if there are problems with client code, someone will complain. Until then its probably not worth the effort investigating how to fix the unstable order. I do see that getMatches() uses some "default" sorting method, while the viewer allows setting a specific comparator (which might yield a stable order for the client elements). Though that comparator is not available to AbstractTextSearchResult, at least on first glance.
(In reply to Simeon Andreev from comment #19) > Due to changes here, we observe unstable element order returned by this > method: > org.eclipse.search.ui.text.AbstractTextSearchResult.getMatches(Object) Hi Simeon, the API never promised any order on that method. Instead the documentation said "the *set* of ". It is in principle not possible to return any specific order with a parallel search other then due to a comparator. > I guess if there are problems with client code, someone will complain. If however someone would complain that the result on a singlethreaded search is in unexpected order we would know how to solve that. see comments after https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185198/5 For /org/eclipse/search/core/tests/TestSearchResult.java we just removed the test for preserved order.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185196 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=f3831f0ee7f44eddb3ae75fcb0c7b3fd2f08f083