Skip to content

Commit

Permalink
Add disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Aug 12, 2024
1 parent a8a1147 commit ed8b416
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/core/architecture/pinning.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import { Callout } from "nextra/components";

# Contract pinning

<Callout type="info">
This is done by chain maintainers and not by contract developers. It's not something you need to
worry about when writing contracts but can be a fun thing to know.
</Callout>

Contract pinning is a feature of the CosmWasm virtual machine which ensures that a previously stored
compiled contract code (module) is started from a dedicated in-memory cache. Starting a module from
memory takes ~45µs compared to 1.5ms when loaded from disk (33x faster).
Expand Down Expand Up @@ -85,5 +90,4 @@ which required certain contracts to be executed in every block.
https://medium.com/confio/neutron-case-study-optimizing-gas-usage-with-contract-pinning-5970a109c706

[^1]: https://github.com/CosmWasm/wasmd/pull/1799

[^2]: https://github.com/CosmWasm/cosmwasm/issues/2034

0 comments on commit ed8b416

Please sign in to comment.