Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
eae961ee
Commit
eae961ee
authored
4 years ago
by
Sergey Pepyakin
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Avoid inlining `update_config_member` (#2246)
Closes #2241
parent
d99dbc49
Branches
gh-readonly-queue/master/pr-6144-a3bca4bb65fdbfef99b52b06181779c0f681d3ea
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
polkadot/runtime/parachains/src/configuration.rs
+5
-0
5 additions, 0 deletions
polkadot/runtime/parachains/src/configuration.rs
with
5 additions
and
0 deletions
polkadot/runtime/parachains/src/configuration.rs
+
5
−
0
View file @
eae961ee
...
...
@@ -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.
#[inline(never)]
fn
update_config_member
(
updater
:
impl
FnOnce
(
&
mut
HostConfiguration
<
T
::
BlockNumber
>
)
->
bool
,
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment