Skip to content

Use setjmp + longjmp to handle errors #1

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

Closed
k0ekk0ek opened this issue Dec 20, 2022 · 1 comment
Closed

Use setjmp + longjmp to handle errors #1

k0ekk0ek opened this issue Dec 20, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@k0ekk0ek
Copy link
Contributor

There are not that many places errors can occur and the library itself is designed to not allocate additional memory (except for file buffers). Handling errors in one place reduces the number of possible branches and therefore may positively impact performance and code size.

@k0ekk0ek k0ekk0ek added this to the Release 0.1.0 milestone Dec 20, 2022
@k0ekk0ek k0ekk0ek added the enhancement New feature or request label Dec 20, 2022
@k0ekk0ek k0ekk0ek self-assigned this Jan 13, 2023
@k0ekk0ek
Copy link
Contributor Author

I have an implementation of this locally. There's a slight increase in performance and code complexity is reduced too. Likely ends up in the work done for #19.

k0ekk0ek added a commit to k0ekk0ek/simdzone that referenced this issue Mar 1, 2023
Add a fallback implementation to support architectures for which no SIMD
implementation is available yet. Sources have been reorganized to allow
for easy optimization per target. Closes NLnetLabs#4.

Use longjmp for error handling. Closes NLnetLabs#1.

Add zone-bench to allow for convenient benchmarking.

Vectorize string to wire conversion. Closes NLnetLabs#20.

Vectorize name to wire conversion. Closes NLnetLabs#29.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant