Specifically:
- Separate one-entry cache for loaded and local files
- Use bound that can be deduced from that cache for LessIndex
- Address FIXME to use a faster alternative to isOffsetInFileID()
No functional changes intended.
Paths
| Differential D28218
Small optimizations for SourceManager::getFileID() Needs ReviewPublic Authored by djasper on Jan 2 2017, 2:52 PM.
Details
Summary Specifically:
No functional changes intended.
Diff Detail Event Timelinedjasper updated this object. Comment Actions Hi Daniel, This seems pretty nice. Can you share how much performance improvements you got by this / how did you test it? alexander-shaposhnikov added inline comments.
Revision Contents
Diff 82819 include/clang/Basic/SourceManager.h
lib/Basic/SourceManager.cpp
|
not particularly important (and unrelated to your changes) - nit - s /C-style cast / static_cast / ?