I've written a on-chain program with Rust and compile it via cargo build-sbf
. Then I check the size of the .so
file, it's 156960 bytes.
After I deploy it on devnet via solana program deploy
, I check its size on Solana Explorer, and the size of the executable data account is 313965 bytes! Almost doubled. I'm wondering why.
Here is the program account, and here is the program data account.