-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify CoalesceVariableNames to avoid creating NodeTraversal objects …
…in a tight loop. NodeTraversal have significant initialization cost. Also, avoid repetitive hash lookups when mapping variables to indexes. For a sample build, this moves CoalesceVariableNames from #2 to being #13 in the cost rank. I'm sure this pass could be a lot faster but this is a easy win. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=170096543
- Loading branch information
1 parent
f52432a
commit 1fde37d
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters