Skip to content

Commit

Permalink
Merge branch 'mk/system_api_improvements3' into 'master'
Browse files Browse the repository at this point in the history
chore: RUN-521: Additional system api simplifications

With this MR we end up with three functions for charging for api calls:

charge_for_cpu - which is used in cases where we only have cpu cost

charge_for_cpu_and_mem - which is used in cases where we touch memory

charge_for_stable_write - which name is self explanatory

Additionally, minor improvements and refactors. Among others, some shuffling around allowed to reduce the number of times system_api is extracted from store (which unwraps the option) 

See merge request dfinity-lab/public/ic!15627
  • Loading branch information
eust-dfinity committed Oct 25, 2023
2 parents 4bffb82 + 023cfe8 commit 6b1ab91
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 181 deletions.

0 comments on commit 6b1ab91

Please sign in to comment.