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
Refactor _decode_labels_at_offset to avoid recusion #1094
Comments
Its the python call overhead here that is the issue |
refactoring didn't help much. This is just expensive unfortunately. |
I really don't see how this can be made faster unless we make a cython extension. We could do pxd files so it would work with or without, but then we need to publish wheels |
incoming parsing and _dns object creation even public would get a major boost if we did that |
I couldn't get rid of the recursion but I did get a 36% speed up with #1097 |
The number of re-entries is significantly reduced after #1097 |
Any future improvements would likely need to be a C extension, but 35% improvement helps a bit. The RPI3b is still a bit unstable at startup but any little bit helps |
_decode_labels_at_offset is the most expensive function in terms of execution overhead in the whole stack
part of that is the python overhead of the recursion
The text was updated successfully, but these errors were encountered: