mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously RewriteSystem::simplify() would attempt to apply every rewrite rule at every position in the original term, which was obviously a source of overhead. The trie itself is somewhat unoptimized; for example, with a bit of effort it could merge a node with its only child, if nodes stored a range of elements to compare rather than a single element.
7.6 KiB
7.6 KiB