Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upLazily evaluate EvalErrorKind::*.into() calls. #50051
Conversation
This comment has been minimized.
This comment has been minimized.
|
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
This comment has been minimized.
This comment has been minimized.
|
Please do not update the |
This comment has been minimized.
This comment has been minimized.
|
@bors try |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 18, 2018
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
bors
added
the
S-waiting-on-author
label
Apr 18, 2018
This comment has been minimized.
This comment has been minimized.
|
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
nnethercote
force-pushed the
nnethercote:no-env-var
branch
from
201e9ad
to
5070dea
Apr 18, 2018
This comment has been minimized.
This comment has been minimized.
|
I updated the patch to remove the unintentional submodule changes. Sometimes that happens to me when I update my repo, I don't understand why. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
bors
added
S-waiting-on-bors
and removed
S-waiting-on-author
labels
Apr 18, 2018
This comment has been minimized.
This comment has been minimized.
|
Jup, I already saw it, and I fully agree this is good. I really am bad at writing code without clippy looking over my shoulder :( |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 20, 2018
This comment has been minimized.
This comment has been minimized.
|
|
nnethercote commentedApr 18, 2018
•
edited by kennytm
eval_context.rs calls
ok_orin multiple places with an eagerlyevaluated
EvalErrorKind::*.into()argument, which callsEvalError::from(), which calls env::var("MIRI_BACKTRACE"), which
allocates a String. This code is hot enough for this to have a
measurable effect on some benchmarks.
This patch changes the
ok_orcalls intook_or_else, thus avoidingthe evaluations when they're not needed. As a result, most of the
rustc-perf benchmarks get a measurable speedup, particularly the
shorter-running ones, where the improvement is as high as 6%.
Output from rustc-perf, comparing stage 2 builds with jemalloc disabled: