mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 17:47:56 +00:00
remove base weight annotations (#10373)
* remove base weight annotations * Update frame/scheduler/src/lib.rs Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Damilare <dakinlose@teamapt.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -351,14 +351,6 @@ pub mod pallet {
|
||||
}
|
||||
|
||||
/// Set the number of pages in the WebAssembly environment's heap.
|
||||
///
|
||||
/// # <weight>
|
||||
/// - `O(1)`
|
||||
/// - 1 storage write.
|
||||
/// - Base Weight: 1.405 µs
|
||||
/// - 1 write to HEAP_PAGES
|
||||
/// - 1 digest item
|
||||
/// # </weight>
|
||||
#[pallet::weight((T::SystemWeightInfo::set_heap_pages(), DispatchClass::Operational))]
|
||||
pub fn set_heap_pages(origin: OriginFor<T>, pages: u64) -> DispatchResultWithPostInfo {
|
||||
ensure_root(origin)?;
|
||||
@@ -407,13 +399,6 @@ pub mod pallet {
|
||||
}
|
||||
|
||||
/// Set some items of storage.
|
||||
///
|
||||
/// # <weight>
|
||||
/// - `O(I)` where `I` length of `items`
|
||||
/// - `I` storage writes (`O(1)`).
|
||||
/// - Base Weight: 0.568 * i µs
|
||||
/// - Writes: Number of items
|
||||
/// # </weight>
|
||||
#[pallet::weight((
|
||||
T::SystemWeightInfo::set_storage(items.len() as u32),
|
||||
DispatchClass::Operational,
|
||||
@@ -430,13 +415,6 @@ pub mod pallet {
|
||||
}
|
||||
|
||||
/// Kill some items from storage.
|
||||
///
|
||||
/// # <weight>
|
||||
/// - `O(IK)` where `I` length of `keys` and `K` length of one key
|
||||
/// - `I` storage deletions.
|
||||
/// - Base Weight: .378 * i µs
|
||||
/// - Writes: Number of items
|
||||
/// # </weight>
|
||||
#[pallet::weight((
|
||||
T::SystemWeightInfo::kill_storage(keys.len() as u32),
|
||||
DispatchClass::Operational,
|
||||
@@ -453,13 +431,6 @@ pub mod pallet {
|
||||
///
|
||||
/// **NOTE:** We rely on the Root origin to provide us the number of subkeys under
|
||||
/// the prefix we are removing to accurately calculate the weight of this function.
|
||||
///
|
||||
/// # <weight>
|
||||
/// - `O(P)` where `P` amount of keys with prefix `prefix`
|
||||
/// - `P` storage deletions.
|
||||
/// - Base Weight: 0.834 * P µs
|
||||
/// - Writes: Number of subkeys + 1
|
||||
/// # </weight>
|
||||
#[pallet::weight((
|
||||
T::SystemWeightInfo::kill_prefix(_subkeys.saturating_add(1)),
|
||||
DispatchClass::Operational,
|
||||
|
||||
Reference in New Issue
Block a user