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

Encode request/response into buffer to avoid temporary allocations #292

Merged
merged 13 commits into from
Oct 17, 2024

Conversation

uklotzde
Copy link
Member

No description provided.

@uklotzde uklotzde requested a review from flosse October 14, 2024 01:00
@uklotzde uklotzde changed the title Encode request data directly into buffer to avoid temporary allocations Encode request/response into buffer to avoid temporary allocations Oct 14, 2024
@uklotzde uklotzde added this to the v0.16.0 milestone Oct 15, 2024
@uklotzde
Copy link
Member Author

The strict validations that are applied now during encoding/decoding might cause issues for devices that don't conform to the spec. Scheduled for v0.16.0 to avoid breaking existing applications.

@uklotzde
Copy link
Member Author

Tests for lots of edge cases are missing. These should better be discovered by #95.

Copy link
Member

@flosse flosse left a comment

Choose a reason for hiding this comment

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

LGTM!

src/codec/mod.rs Outdated Show resolved Hide resolved
src/codec/mod.rs Outdated Show resolved Hide resolved
src/codec/mod.rs Outdated Show resolved Hide resolved
src/codec/mod.rs Outdated Show resolved Hide resolved
uklotzde and others added 5 commits October 17, 2024 17:38
Co-authored-by: Markus Kohlhase <[email protected]>
Co-authored-by: Markus Kohlhase <[email protected]>
Co-authored-by: Markus Kohlhase <[email protected]>
Co-authored-by: Markus Kohlhase <[email protected]>
@uklotzde uklotzde merged commit a23664e into slowtec:main Oct 17, 2024
10 checks passed
@uklotzde uklotzde deleted the codec branch October 17, 2024 21:20
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.

2 participants