-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor OnePassCompiler::forwards into local var.
Iteration of a `Forwards` object is destructive, which previously meant that we had to clone it in order to iterate over it. Once the compiler iterates over the forwarding jobs, it never touches them again, so this was an extra copy. This patch plays a little type tetris to get rid of that extra copy.
- Loading branch information
Ethan Pailes
committed
Apr 24, 2018
1 parent
223e14c
commit 51e06ef
Showing
1 changed file
with
59 additions
and
66 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