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

Feature/performance improvements #9

Merged
merged 2 commits into from
Aug 18, 2016

Conversation

phoney
Copy link
Contributor

@phoney phoney commented Aug 16, 2016

This pull request improves performance and has a lower high-water mark for memory usage.

The unit tests take about half the time to run as before, due to moving the string and NSRegularExpression objects out of the code run for each line.

The unit tests have a lower memory usage due to the autorelease pool. This kind of parser that runs until completion in an unbounded way on a background thread is a classic case where an autorelease pool reduces the high-water-mark.

These are some constant strings and constant NSRegularExpressions.
This results in a lower high-water mark for memory usage.
@Jeehut
Copy link
Member

Jeehut commented Aug 18, 2016

Nice work, thanks. Merging.

@Jeehut Jeehut merged commit 0159bb2 into FlineDev:stable Aug 18, 2016
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.

2 participants