mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-26 13:39:50 +00:00
1 parent
d99dbc496c
commit
eae961ee99
1 file changed
+5
@@ -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,
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user