Skip to content

update: optimize broadcaster by lazily computing cert entry bytes - #128

Merged
d-Rickyy-b merged 6 commits into
d-Rickyy-b:devfrom
messede-degod:fix/optimize-brodcaster
Sep 27, 2026
Merged

d-Rickyy-b merged 6 commits into
d-Rickyy-b:devfrom
messede-degod:fix/optimize-brodcaster

Conversation

@messede-degod

Copy link
Copy Markdown
Contributor

optimise broadcaster by lazily computing cert entry bytes

d-Rickyy-b and others added 3 commits September 13, 2026 01:48
Merge changes for 1.10 into master branch
Fix bug in kafka implementation that caused double client registration

@d-Rickyy-b d-Rickyy-b left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Sorry for the inconvenience but could you please recreate the PR towards the dev branch? I am trying to keep unpublished changes in dev and have master/main on the latest published version or release candidate.

Also see the comment regarding the implementation.

Comment thread internal/broadcast/dispatcher.go Outdated
@mimi89999

Copy link
Copy Markdown
Contributor

I plan to do something similar, but much different

@messede-degod
messede-degod changed the base branch from master to dev September 26, 2026 06:35
Comment thread internal/broadcast/dispatcher.go Outdated
}

func entryBytesComputer(entry *models.Entry) func(subType SubscriptionType) ([]byte, error) {
return func(subType SubscriptionType) ([]byte, error) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

What's the benefit of using a closure here instead of just keeping the switch/case statement as before? I currently only see one additional function call instead of having the switch/case directly within the loop.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah silly me, took care of it now.

@d-Rickyy-b
d-Rickyy-b merged commit eee5bf5 into d-Rickyy-b:dev Sep 27, 2026
1 check failed
@mimi89999

Copy link
Copy Markdown
Contributor

@d-Rickyy-b shouldn't this PR have been squashed before merging?

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.

3 participants