Skip to content

Optimize operator allocations and Mediator pipeline - #184

Merged
eneshoxha merged 1 commit into
v3.0/releasefrom
v3/feature/156
Jan 28, 2026
Merged

Optimize operator allocations and Mediator pipeline#184
eneshoxha merged 1 commit into
v3.0/releasefrom
v3/feature/156

Conversation

@eneshoxha

Copy link
Copy Markdown
Contributor

Refactor stream operators to cache operator/type names, reducing string allocations and improving error message consistency. Optimize Mediator's PublishAsync and CreateStream by materializing handler/behavior arrays only once and pre-allocating task arrays. Cache span names in BranchOperator for telemetry. Remove redundant variables and streamline code for better performance and clarity.

Refactor stream operators to cache operator/type names, reducing string allocations and improving error message consistency. Optimize Mediator's PublishAsync and CreateStream by materializing handler/behavior arrays only once and pre-allocating task arrays. Cache span names in BranchOperator for telemetry. Remove redundant variables and streamline code for better performance and clarity.
@eneshoxha eneshoxha added this to the Cortex v3.0 milestone Jan 28, 2026
@eneshoxha eneshoxha self-assigned this Jan 28, 2026
@eneshoxha eneshoxha added enhancement New feature or request feature This label is in use for minor version increments labels Jan 28, 2026
@eneshoxha eneshoxha linked an issue Jan 28, 2026 that may be closed by this pull request
@eneshoxha
eneshoxha merged commit e7ad09f into v3.0/release Jan 28, 2026
@eneshoxha
eneshoxha deleted the v3/feature/156 branch January 28, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature This label is in use for minor version increments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Minimise allocations and hot‑path overhead

1 participant