[PATCH] D49780: [clangd] Use a sigmoid style function for #usages boost in symbol quality.
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 25 03:51:40 PDT 2018
ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: clangd/Quality.cpp:194
+ if (References >= 10) {
+ // Use a sigmoid style boosting function, which flats out better for large
+ // numbers (e.g. 2.58 for 1M refererences).
----------------
NIT: better, but nothing to compare to in the comment.
Maybe use "better than log" or "nicely" instead?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D49780
More information about the cfe-commits
mailing list