Skip to content

#414: Add --purge option for tuning memory usage#415

Merged
a4sriniv merged 9 commits intomasterfrom
as-414-purge
May 6, 2016
Merged

#414: Add --purge option for tuning memory usage#415
a4sriniv merged 9 commits intomasterfrom
as-414-purge

Conversation

@a4sriniv
Copy link
Copy Markdown
Member

@a4sriniv a4sriniv commented May 5, 2016

Resolves #414 and adds a tuning mechanism to fix #325.

@adityatrivedi
Copy link
Copy Markdown
Member

Can you add this functionality to the config file too?

@alykhank alykhank changed the title #414 Add --purge option #414: Add --purge option for tuning memory usage May 5, 2016
ConstructLengths constructLengths = configuration.parseConstructLengths();
Set<Rules> enabledRules = configuration.getEnabledRules();

setNumberOfFilesBeforePurge();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this could be simplified to just numberOfFilesBeforePurge = configuration.numberOfFilesBeforePurge(); (no need to have a separate method for it) because that will default to 0, which will be semantically identical to not providing the --purge flag.

@adityatrivedi
Copy link
Copy Markdown
Member

👍

@alykhank
Copy link
Copy Markdown
Member

alykhank commented May 6, 2016

👍

@a4sriniv a4sriniv merged commit 6d2f80c into master May 6, 2016
@a4sriniv a4sriniv deleted the as-414-purge branch May 6, 2016 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --purge option Extremely poor performance

4 participants