From 38f6f78d05cbde52e15a35aca0b92c96656a2b29 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 29 Jul 2022 11:57:06 -0700 Subject: [PATCH] Update optimized page (#44) --- ...ized-wasm-file.mdx => build-optimized.mdx} | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) rename docs/tutorials/{build-an-optimized-wasm-file.mdx => build-optimized.mdx} (65%) diff --git a/docs/tutorials/build-an-optimized-wasm-file.mdx b/docs/tutorials/build-optimized.mdx similarity index 65% rename from docs/tutorials/build-an-optimized-wasm-file.mdx rename to docs/tutorials/build-optimized.mdx index 67c0d8469..d266fa52c 100644 --- a/docs/tutorials/build-an-optimized-wasm-file.mdx +++ b/docs/tutorials/build-optimized.mdx @@ -1,20 +1,28 @@ --- sidebar_position: 8 -title: Build an Optimized WASM File +title: Build Optimized --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -Building optimized WASM files requires some additional options and commands, and -requires installing the `nightly` Rust toolchain and `wasm-opt`. +Building optimized contracts to be as small as possible requires some additional +tools, and requires installing the `nightly` Rust toolchain and `wasm-opt`. :::info -Building optimized WASM is only necessary when deploying to network or when -analyzing the real size of a contract. It is otherwise not required during -initial development. +Building optimized contracts is only necessary when deploying to network or when +analyzing and profiling a contract to get it as small as possible. If you're +just starting out writing a contract, these steps are not necessary. ::: +:::info +All contracts are optimized to some degree by the projects `release` profile. +It is highly recommended to use the release profile outlined in [Configure the +Release Profile], otherwise the contract will be too large to deploy or run. +::: + +[Create a Project]: create-a-project#configure-the-release-profile + ## Install Rust `nightly` To install the nightly Rust toolchain use `rustup`.