forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By passing in a `&mut Vec` in various places and appending to it, rather than building many tiny `Vec`'s and then combining them. This removes about 20% of the allocations occurred in a `check` build of a test program from rust-lang#87012, making it roughly 2% faster.
- Loading branch information
1 parent
6a9080b
commit 528b6a4
Showing
2 changed files
with
45 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
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