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

Replace remaining rfind_pdu calls to find_pdu in src directory #527

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

jamestiotio
Copy link
Contributor

This commit replaces the remaining rfind_pdu calls to find_pdu in the src directory. Any existing rfind_pdu calls in the examples and tests directories are unmodified.

The main motivation is that conditional statements are generally more performant than exception handling. Since rfind_pdu calls find_pdu internally anyway, this eliminates some overhead as well.

This commit replaces the remaining `rfind_pdu` calls to `find_pdu` in
the `src` directory. Any existing `rfind_pdu` calls in the `examples`
and `tests` directories are unmodified.

The main motivation is that conditional statements are generally more
performant than exception handling. Since `rfind_pdu` calls `find_pdu`
internally anyway, this eliminates some overhead as well.

Signed-off-by: James Raphael Tiovalen <jamestiotio@gmail.com>
@mfontanini mfontanini merged commit bbac2ec into mfontanini:master Mar 17, 2024
2 checks passed
@mfontanini
Copy link
Owner

Thanks!

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.

None yet

2 participants