Unverified Commit d0703258 authored by Sergey Pepyakin's avatar Sergey Pepyakin Committed by GitHub
Browse files

Avoid inlining `update_config_member` (#2246)

Closes #2241
parent 05482b5b
Pipeline #120003 passed with stages
in 29 minutes and 26 seconds
......@@ -652,6 +652,11 @@ impl<T: Config> Module<T> {
// NOTE: Explicitly tell rustc not to inline this because otherwise heuristics note the incoming
// closure making it's attractive to inline. However, in this case, we will end up with lots of
// duplicated code (making this function to show up in the top of heaviest functions) only for
// the sake of essentially avoiding an indirect call. Doesn't worth it.
fn update_config_member(
updater: impl FnOnce(&mut HostConfiguration<T::BlockNumber>) -> bool,
) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment