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 Foundation scanner implementation #216

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jrcmramos-bumble
Copy link

@jrcmramos-bumble jrcmramos-bumble commented Oct 20, 2024

This PR fixes the issue #215.

The memory leak is not XCLogParser implementation related, but instead associated with the Scanner object while parsing considerable large files (tested with 243.3MB logs).

The initial attempt replaced Scanner with Substrings (please check commit history). Due to the poor runtime performance, mostly related with protocol witness calls to collection methods, we had to replace with a new Scanner component, implementing a subset of methods for our usages. This new implementation avoids invoking non performance String related methods.

Taking into account the above mentioned file, we were able to improve performance by around 80% compared to masters implementation

@jrcmramos-bumble jrcmramos-bumble changed the title Replace scanner with substrings Replace Foundation scanner implementation Oct 20, 2024
Signed-off-by: Jose Ramos <jose.ramos@team.bumble.com>
Signed-off-by: Jose Ramos <jose.ramos@team.bumble.com>
Signed-off-by: Jose Ramos <jose.ramos@team.bumble.com>
Signed-off-by: Jose Ramos <jose.ramos@team.bumble.com>
Signed-off-by: Jose Ramos <jose.ramos@team.bumble.com>
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.

1 participant