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

Optimize skip for fixed sized types and units #1640

Closed
J-Gras opened this issue Jan 8, 2024 · 0 comments · Fixed by #1646
Closed

Optimize skip for fixed sized types and units #1640

J-Gras opened this issue Jan 8, 2024 · 0 comments · Fixed by #1646
Assignees

Comments

@J-Gras
Copy link
Contributor

J-Gras commented Jan 8, 2024

According to @bbannier, skip generates optimized code for bytes. It would be great to apply the same optimization to fixed sized basic types like integers as well as fixed size units.

bbannier added a commit that referenced this issue Jan 12, 2024
This patch adds `skip` support for fields with `&size` attribute or of
builtin type with known size. If a unit has a known size and it is
specified in a `&size` attribute this also allows to skip over unit
fields.

Closes #1640.
@bbannier bbannier self-assigned this Jan 12, 2024
bbannier added a commit that referenced this issue Jan 16, 2024
This patch adds `skip` support for fields with `&size` attribute or of
builtin type with known size. If a unit has a known size and it is
specified in a `&size` attribute this also allows to skip over unit
fields.

Closes #1640.
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 a pull request may close this issue.

2 participants