Skip to content

Record transaction metrics off the main thread#2910

Merged
joshua-spacetime merged 2 commits into
masterfrom
joshua/perf/move-metrics-off-reducer-thread
Jul 1, 2025
Merged

Record transaction metrics off the main thread#2910
joshua-spacetime merged 2 commits into
masterfrom
joshua/perf/move-metrics-off-reducer-thread

Conversation

@joshua-spacetime
Copy link
Copy Markdown
Contributor

Description of Changes

Moves the recording of transaction metrics off the main reducer thread, unblocking the next reducer.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

Just a refactor. Existing test coverage still applies.

@joshua-spacetime joshua-spacetime linked an issue Jun 28, 2025 that may be closed by this pull request
@Centril Centril self-requested a review June 30, 2025 12:46
Comment thread crates/core/src/subscription/module_subscription_manager.rs Outdated
Comment thread crates/core/src/subscription/module_subscription_manager.rs Outdated
Comment thread crates/core/src/subscription/module_subscription_manager.rs Outdated
Comment thread crates/core/src/subscription/module_subscription_manager.rs Outdated
Comment thread crates/core/src/subscription/module_subscription_manager.rs Outdated
Comment thread crates/core/src/db/relational_db.rs Outdated
@bfops bfops added release-any To be landed in any release window performance A PR/Issue related to improving performance of stdb labels Jun 30, 2025
@joshua-spacetime joshua-spacetime force-pushed the joshua/perf/move-metrics-off-reducer-thread branch from 7e454ac to 3bf0955 Compare June 30, 2025 21:27
@joshua-spacetime joshua-spacetime force-pushed the joshua/perf/move-metrics-off-reducer-thread branch from 8a1e35c to 94412ec Compare July 1, 2025 06:21
Copy link
Copy Markdown
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks mostly good. There's some potential for confusion with other metrics workers that I'd like to disambiguate in the code by adding the prefix tx_ in various places as partially outlined below. Once those are addressed, this should be good to merge.

Comment thread crates/core/src/host/host_controller.rs Outdated
Comment thread crates/core/src/host/host_controller.rs Outdated
Comment thread crates/core/src/host/host_controller.rs Outdated
Comment thread crates/core/src/db/relational_db.rs
Comment thread crates/core/src/db/relational_db.rs
Comment thread crates/core/src/db/relational_db.rs
Comment thread crates/core/src/db/relational_db.rs
Comment thread crates/core/src/db/relational_db.rs
Comment thread crates/core/src/db/relational_db.rs
Comment thread crates/core/src/db/mod.rs Outdated
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Jul 1, 2025
Merged via the queue into master with commit c871610 Jul 1, 2025
19 checks passed
@Centril Centril deleted the joshua/perf/move-metrics-off-reducer-thread branch July 1, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance A PR/Issue related to improving performance of stdb release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move metrics off reducer thread

3 participants