HomePhabricator

[Syntax] Use a hash table to search for tokens by their location

Authored by ilya-biryukov on Dec 18 2019, 2:44 AM.

Description

[Syntax] Use a hash table to search for tokens by their location

This is both more efficient and avoids corner cases in
SourceManager::isBeforeInTranslationUnit.

The change is trivial and clearly a performance improvement on the hot
path of building the syntax tree, so sending without review.

Details

Committed
ilya-biryukovDec 18 2019, 3:24 AM
Parents
rG038f53882e7c: [Syntax] Uppercase the first letter of the test name. NFC
Branches
Unknown
Tags
Unknown