-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix how the
RUSTC_CTFE_BACKTRACE
env var is gotten.
This environment variable is currently obtained very frequently in CTFE-heavy code; using `lazy_static` avoids repeating the work. For the `ctfe-stress-4` benchmark this eliminates 67% of allocations done, and for `coercions` it eliminates 17% of allocations done.
- Loading branch information
1 parent
eed12bc
commit 15dcf1f
Showing
3 changed files
with
7 additions
and
1 deletion.
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
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