Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: encoder pool #1462

Open
rekby opened this issue Sep 16, 2024 · 0 comments
Open

feat: encoder pool #1462

rekby opened this issue Sep 16, 2024 · 0 comments
Labels
enhancement New feature or request topic issue for topic service

Comments

@rekby
Copy link
Member

rekby commented Sep 16, 2024

Now the sdk create encoder for every message in a topic:

func (e *EncoderMap) CreateLazyEncodeWriter(codec rawtopiccommon.Codec, target io.Writer) (io.WriteCloser, error) {

It will be good to create pool of encoders with .Reset() method and reuse it.

@rekby rekby added enhancement New feature or request topic issue for topic service labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic issue for topic service
Projects
None yet
Development

No branches or pull requests

1 participant