aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
327 stars 80 forks source link

Feat: added wasm optimization #835

Open mrLSD opened 1 year ago

mrLSD commented 1 year ago

Description

Gas cost

Gas costs decreased by 3-5%.

Binary size

Binary size decreased to 9%.

Tests

Refactored test gas cost.

mrLSD commented 1 year ago

Related to #818

aleksuss commented 1 year ago

Also, we need to modify building artifacts script.

aleksuss commented 1 year ago

Looks good, but I would postpone merging it right now.

aleksuss commented 1 year ago

@mrLSD, why don't we use wasm-opt for xcc-router smart contract?

mrLSD commented 1 year ago

@mrLSD, why don't we use wasm-opt for xcc-router smart contract?

Because it's not part of the test-flow:

[tasks.test-flow]
category = "Test"
dependencies = [
    "build-test",
    "test-contracts",
    "test-workspace",
    "bench-modexp",
]