-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
Fix context.mergeFilters #889
Conversation
As much as I agree that this fixes #884, the performance implications are a little too severe... we should really look at ways to do this more conditionally, so the impact is minimized.. So I'm going to mark this as "request changes"... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
performance impact too great... lets figure out a way to do this more conditionally.
@tvandijck I agree with this. I will still take a look to see what I can do to improve this. |
With this, performance is no longer an issue, difference with the current implementation in master is marginal. Would implementing mergeFilters in c improve performances? |
I don't know if it would be effective to do it in C... considering you then have to enumerate the table in C, you just end up with a whole lot of calls into lua api's anyway... I think the conditional approach is acceptable, and can always be extended.. I think it's really only the tags that suffer. |
I forgot to mention, I also removed the call to table.joinunique as we don't care about duplicate and it takes more time to check duplicates than just copy the whole thing. I did not remove the table.joinunique function though, I should remove it before merging this. |
Fix related to #884.
This lead to a 10-15% performance drop for me.