Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fe-lang/fevm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: fe-lang/fevm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: exp/transaction-effects
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 28 files changed
  • 1 contributor

Commits on Nov 11, 2026

  1. Remove transact_in

    The conformance driver kept one Transaction and loaded each run's world
    into it, because moving the world and buffers through `transact` cost
    ~17% of a transfer. With Sonatina building the Transaction in place,
    reading the lent buffers in place and folding `Buffers::new()`, the
    driver runs the documented `transact`, and `transact_in` and
    `Transaction::load` go.
    sbillig committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    4059a6e View commit details
    Browse the repository at this point in the history
  2. Remove the world and buffers placeholders

    `apply` replaced the lent buffers with `Buffers::new()` to move them
    into the Transaction, and `Session::apply` replaced its world with
    `WorldState::empty()`. Both are `mut` places, which can be moved out
    of when reinitialized before returning, so move them and restore
    them instead. `Session::apply` returns the receipt.
    sbillig committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    8f278bd View commit details
    Browse the repository at this point in the history
  3. Lend the world and buffers to transactions as effects

    A Transaction owned the world and buffers, so `transact` moved them in
    and out: four copies (1.2 KB) per transaction. The Transaction now keeps
    only its own state (logs, blob hashes, endpoints, refund, depth), and the
    code that runs it declares `uses (world: mut WorldState, buffers: mut
    Buffers)`, read-only where it only reads. `transact` and `simulate` take
    `mut world` and return the Receipt; `Applied`, `release` and the
    Transaction's world-read forwarders go, and callers read the world
    directly. Tests that ran a second transaction on fresh buffers now reuse
    the first's, so they also check that `finish` empties them.
    sbillig committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    e2c8552 View commit details
    Browse the repository at this point in the history
Loading