[PATCH] D49543: [clangd] Penalize non-instance members when accessed via class instances.
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 19 06:23:46 PDT 2018
ioeric created this revision.
ioeric added a reviewer: sammccall.
Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ilya-biryukov.
The following are metrics for explicit member access completions. There is no
noticeable impact on other completion types.
Before:
EXPLICIT_MEMBER_ACCESS
Total measurements: 24382
All measurements: MRR: 62.27 Top10: 80.21% Top-100: 94.48%
Full identifiers: MRR: 98.81 Top10: 99.89% Top-100: 99.95%
0-5 filter len:
MRR: 13.25 46.31 62.47 67.77 70.40 81.91
Top-10: 29% 74% 84% 91% 91% 97%
Top-100: 67% 99% 99% 99% 99% 100%
After:
EXPLICIT_MEMBER_ACCESS
Total measurements: 24382
All measurements: MRR: 63.18 Top10: 80.58% Top-100: 95.07%
Full identifiers: MRR: 98.79 Top10: 99.89% Top-100: 99.95%
0-5 filter len:
MRR: 13.84 48.39 63.55 68.83 71.28 82.64
Top-10: 30% 75% 84% 91% 91% 97%
Top-100: 70% 99% 99% 99% 99% 100%
- Top-N: wanted result is found in the first N completion results.
- MRR: Mean reciprocal rank.
Remark: the change seems to have minor positive impact. Although the improvement
is relatively small, down-ranking non-instance members in instance member access
should reduce noise in the completion results.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D49543
Files:
clangd/CodeComplete.cpp
clangd/CodeComplete.h
clangd/Quality.cpp
clangd/Quality.h
unittests/clangd/QualityTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49543.156253.patch
Type: text/x-patch
Size: 7144 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180719/9bd332f7/attachment.bin>
More information about the cfe-commits
mailing list