[PATCH] D28218: Small optimizations for SourceManager::getFileID()
Daniel Jasper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 2 14:52:50 PST 2017
djasper created this revision.
djasper added a reviewer: rsmith.
djasper added a subscriber: cfe-commits.
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.
https://reviews.llvm.org/D28218
Files:
include/clang/Basic/SourceManager.h
lib/Basic/SourceManager.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28218.82819.patch
Type: text/x-patch
Size: 5344 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170102/b747cf9f/attachment.bin>
More information about the cfe-commits
mailing list