Skip to content

Feature/performance improvements#9

Merged
Jeehut merged 2 commits intoFlineDev:stablefrom
phoney:feature/performance-improvements
Aug 18, 2016
Merged

Feature/performance improvements#9
Jeehut merged 2 commits intoFlineDev:stablefrom
phoney:feature/performance-improvements

Conversation

@phoney
Copy link
Copy Markdown
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.

phoney added 2 commits August 16, 2016 14:05
These are some constant strings and constant NSRegularExpressions.
This results in a lower high-water mark for memory usage.
@Jeehut
Copy link
Copy Markdown
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