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

Speed up pruner #969

Merged
merged 1 commit into from Oct 28, 2016

Conversation

Projects
None yet
1 participant
@ddfreyne
Copy link
Member

commented Oct 28, 2016

  • Unify File.file? and File.directory? calls into a single File.ftype call
  • Use Find.prune to limit the file search tree

For the Nanoc web site, this results in a ±100x speedup (unscientific results), going from ±0.5s to ±0.005s.

No test changes, as the behavior has not changed.

@ddfreyne ddfreyne added this to the 4.3.7 milestone Oct 28, 2016

Speed up pruner
* Unify File.file? and File.directory? calls into a File.ftype call
* Use Find.prune to limit file search tree

@ddfreyne ddfreyne force-pushed the faster-pruner branch from da82a49 to 2332248 Oct 28, 2016

@ddfreyne ddfreyne merged commit bec4edd into master Oct 28, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@ddfreyne ddfreyne deleted the faster-pruner branch Oct 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.