Skip to content

Tidy up client creation - #287

Merged
Chaosvex merged 1 commit into
developmentfrom
clientbuilder_tidy
Apr 9, 2026
Merged

Tidy up client creation#287
Chaosvex merged 1 commit into
developmentfrom
clientbuilder_tidy

Conversation

@Chaosvex

@Chaosvex Chaosvex commented Apr 9, 2026

Copy link
Copy Markdown
Member

Feels a little backwards to be passing builders to the client object but it's the best solution I can come up with that doesn't involve making the objects movable (opens up multiple cans of worms) or allocating them (more indirections, worse locality for message handling). Could tidy it up further by binding the additional arguments to the create functions and passing those to the client builder but that'd introduce its own overhead and is probably over the top.

Feels a little backwards to be passing builders to the client object but it's the best solution I can come up with that doesn't involve making the objects movable (opens up multiple cans of worms) or allocating them (more indirections, worse locality for message handling). Could tidy it up further by binding the additional arguments to the create functions and passing those to the client builder but that'd introduce its own overhead and is probably over the top.
@Chaosvex Chaosvex linked an issue Apr 9, 2026 that may be closed by this pull request
@Chaosvex
Chaosvex merged commit 88249f3 into development Apr 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split realm client construction up

1 participant