[PATCH] D45003: [Support] Make line-number cache robust against access patterns.

Jordan Rose via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 29 10:03:57 PDT 2018


jordan_rose added a comment.

> And those that do, assume a file is (say) 1000 lines long, it'll cost 8kb to index. Even if we indexed a thousand such files -- a diagnostic in every file of a large project! -- we'd only be talking 8mb.

I'm not sure 1000 lines is a reasonable assumption, but the orders of magnitude probably do still work out.


Repository:
  rL LLVM

https://reviews.llvm.org/D45003





More information about the llvm-commits mailing list