TechnionYP5777 / Bugquery

Bug query
9 stars 1 forks source link

Improve performance of searching algorithms #56

Closed rodedzats closed 7 years ago

rodedzats commented 7 years ago

Check the performance of the current searching of relevant posts and improve it

yossigil commented 7 years ago

Please checkout minimal hashing. I am not sure it is relevant to stack traces, whic might be too small for the technique to be effective.

yonzarecki commented 7 years ago

After looking at the complete code, the process that goes through getting a query is:

As we can see there are 2 components that might take time:

Tony is working on optimizing the DB, and what we can optimize is the sorting.

We think the best option is to use PriorityQueues and get top K elements. We'll continue to work on this optimization in the following days.

yonzarecki commented 7 years ago

We've updated the code to use heap-based top k access. And as I stated before, We can't see any more significant runtime optimization beyond faster database access at the time. So I'll be closing this issue.