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

Patch for QueryParser to avoid throwing lots of exceptions that slows down the debugger #131

Open
wants to merge 1 commit into
base: 3.0.3
Choose a base branch
from

Conversation

franckspike
Copy link

Patch for QueryParser to avoid throwing lots of exceptions as part of main control flow.
When called very often, it slowed down a lot the
execution time when the visual studio debugger was attached.
This patch enhance the performance of the QueryParser under a debugger.

main control flow. When called very often, it slowed down a lot the
execution time when the visual studio debugger was attached. This patch
enhance the performance of the QueryParser under a debugger.
@synhershko
Copy link
Contributor

Thanks. We are not actively maintaining the 3.x branch as we put all our efforts in having a 4.x release soon. I'll be keeping this around for a reference.

kentcb added a commit to kentcb/Xamarin-Lucene.Net that referenced this pull request Nov 9, 2015
Applied apache/lucenenet#131. However, I note that exceptions are still thrown when searches are instigated (but not when the app first loads, which is at least something).
kentcb added a commit to kentcb/Xamarin-Lucene.Net that referenced this pull request Nov 9, 2015
For some reason, @franckspike's patch (apache/lucenenet#131, applied in the previous commit) does not deal with all exceptions. Therefore, I've fleshed out the code so that no exceptions are thrown even during searches.
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

Successfully merging this pull request may close these issues.

None yet

2 participants