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

Minor memory optimizations (#1960) #1962

Merged
merged 7 commits into from
Nov 2, 2023
Merged

Conversation

wladimirleite
Copy link
Member

@wladimirleite wladimirleite commented Oct 31, 2023

Closes #1960.
Just minor memory optimizations and code enhancements describe in the issue.

EDIT: In some parsers, the memory usage is very low, so these changes don't make any practical difference. However, as parsers' code are sometimes used as references for future parsers, I changed all of them to use a similar logic regarding HashDB lookup related code.

@lfcnassif
Copy link
Member

Thank you @tc-wleite!

@lfcnassif lfcnassif self-assigned this Oct 31, 2023
Copy link
Member

@lfcnassif lfcnassif left a comment

Choose a reason for hiding this comment

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

I didn't detect regressions in a medium size test, thanks @tc-wleite!

@lfcnassif lfcnassif merged commit 15ae2f0 into master Nov 2, 2023
2 checks passed
@lfcnassif lfcnassif deleted the #1960_MemoryOptimizations branch November 2, 2023 12:33
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.

Minor memory optimization in WhatsApp and other parsers
2 participants