User Details
- User Since
- Feb 4 2018, 8:41 PM (304 w, 2 h)
Oct 22 2023
@sammccall, how would you feel about proceeding with the patch in its current state, with the memory usage increase brought down from 8.2% to 2.5% thanks to the combination of the simple lookup optimization + RefKind filtering, and leaving the "deep lookup optimization" to be explored in a future change?
Address other review comments
Oct 21 2023
The updated patch additionally implements the "simple lookup optimization" discussed in the review.
Implement the "simple lookup optimization"
Oct 18 2023
The updated patch implements one of the optimizations discussed during review, namely filtering the Refs stored in the RevRefs data structure to just those that could be calls.
Implement optimization to filter the refs stored in RevRefs to calls only
Oct 11 2023
To be able to reason about the impact of various memory usage optimizations, I took some baseline measurements.
Oct 2 2023
Rebased to apply to recent trunk
Sep 28 2023
Sep 25 2023
Thank you, the updates look good! Please go ahead and merge after addressing the last minor nits.
Sep 11 2023
This can be closed, as the change has been made in https://github.com/llvm/llvm-project/pull/65824
Sep 10 2023
I'm fine with allowing partial selection for consistency with other expressions.
Sep 9 2023
This was superseded by D146941.
Sep 6 2023
I'm not well versed in the parser code, but the fix clearly avoids the assertion in getIdentifierInfo(), and both @aaron.ballman and @rjmccall indicated in the issue discussion that this fix is appropriate, so I will take the liberty of approving this.
Sep 5 2023
Sep 4 2023
(Otherwise the updates look good!)
Aug 31 2023
Aug 26 2023
(I'm away on travels, will get back to this within the next week)
Aug 25 2023
Address review comment
Aug 24 2023
Committed, thanks!
Aug 21 2023
Aug 20 2023
Thanks for the patch!
A future enhancement to consider could be, in the following testcase:
Aug 18 2023
Address review comments
Address review comment
Ok, I've finished looking through the patch; sorry it took so long to get to.
Aug 17 2023
Fix naming nit
Rebase and address review comment
Address review comment
Adding Sam, since you're on a review roll ;)
Aug 14 2023
I understood https://github.com/clangd/clangd/issues/1344 as being about workspace/symbol rather than textDocument/documentSymbol, though I see now that both are affected.
Haven't looked at everything yet, but wanted to mention one thing I noticed.
Aug 12 2023
Thanks for the patch, these are nice improvements
Aug 10 2023
I promise I haven't forgotten about this. It's just been a challenge finding a large enough chunk of time to page in all the relevant context and think through the issues. Maybe this weekend...
Aug 2 2023
Jul 31 2023
Thanks!
LGTM
I'm not sure how I feel about dropping the parameters from the signature in the CanBeCall = false case.
Jul 29 2023
Your patience is appreciated. I have a number of patches in my review queue, and 3 days is often not a realistic turnaround time for me.
Jul 28 2023
Noticed this while reviewing D150124. No caller was providing a value for this parameter.
Adding Sam as well in case he has any thoughts on the discussion (another user ran into this recently and filed https://github.com/clangd/clangd/issues/1694)
Jul 21 2023
Abandoning in favour of D155381.
Add testcase
Yeah, I'm happy to go with D155381 instead.
Thanks! I agree that this no-configuration approach is nicer.
Jul 17 2023
Jul 16 2023
Also adding links to the open issues this fixes:
Let's try adding some reviewers
Jul 11 2023
I'm sorry, I feel like I don't have a good enough level of insight into the requirements to usefully critique this patch, nor the bandwidth to take a detailed look through the implementation right now.
Thank you for the suggested testcase!
Jul 10 2023
Looks reasonable to me but Sam should OK this.
Jul 8 2023
Requesting review.