SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Perf: Improve merge operation when committing or downgrading a tx

Open joshua-spacetime opened this issue 9 months ago • 1 comments

Performance profiling shows that CommittedState::merge contributes a significant portion of time to a transaction, and importantly this is time spent holding the tx lock. According to @Centril we can remove a lot of needless overhead in this method converting to/from product values.

joshua-spacetime avatar Apr 02 '25 20:04 joshua-spacetime