-
Notifications
You must be signed in to change notification settings - Fork 627
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
SOLR-16845 BinaryResponseWriter should not attempt cast to Utf8CharSequence #1728
Conversation
@HoustonPutman fyi |
For changes like this, I wish there was a way for me, as someone who hasn't really worked deeply in this code base to know that this is a positivie safe change.. When folks add features and add new unit tests, those tests demonstrate that the change is safe and good... In this case, where you are refactoring/simplifying, how can we have general confidence in the change? <--- This is kind of a more general question.... For example, is there a set of tests you could run and attach some sort of data that shows that this change doesnt' have any side effects or performance issues? I know this is also a topic to bring up at our next Community meeting.... How to do performance testing ;-) |
I agree with the sentiment. I would also like to have some confirmation that this is a safe change :) |
Does the "beasting" technique help on building confidence on this? I really really want to click the "Squash and Merge" button.... ;-) |
fixed a |
I recently added some benchmarks in this area (SOLR-16841), and I would really hope people look at them and validate the data patters (number of docs, size, threads and so on). but as they stand, here are the numbers on main branch vs this change:
so I would say ~5% improvement |
@epugh posted some perf numbers, but I think the confidence we are looking for is more in the correctness side, rather than speed :) so probably someone more familiar with the area could validate these changes. |
Let's give it a day or two to see if anyone weighs in, and then happy to commit it! The perf numbers are nice ;-) |
@epugh no updates on this one from anyone else. should I shoot an email to dev list to check is anyone has any strong opinions against merging? |
Please do! I am out for the next week, so if you don't hear back in the upcoming week, then do ping me. |
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.
This looks good to me. It is confusing which parts of that reverted patch are still good and which aren't. But I'm glad you came with performance tests.
I see how both of these pieces of code aren't used anymore.
Please add a changelog entry for 9.4, you can put (via Houston Putman) since I'm going to be committing it.
thank you for taking a look @HoustonPutman! |
https://issues.apache.org/jira/browse/SOLR-16845
Description
Removing the unneeded call to StoredField#getCharSequenceValue for every stored field in the query response.
Solution
Please provide a short description of the approach taken to implement your solution.
Tests
Please describe the tests you've developed or run to confirm this patch implements the feature or solves the problem.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.