perf: spawn mining on blocking by mattsse · Pull Request #10471 · foundry-rs/foundry (original) (raw)

ref #10452

mining a block is a blocking operation as far as tokio is concerned, because this can take a relatively long time even in non-forking mode and in forking mode this can be significantly worse due to all the db lookups=rpc requests.

hence we should spawn these request handlers as blocking tasks.

it's possible that recent db change handling made this process a bit more expensive which could have caused #10452