8 Commits

Author SHA1 Message Date
mcharsley
c43a71f536 Added contents_first option (#19)
Added contents_first option

Added ability to yield the contents of the directory before the
directory itself

Fixes #18
2017-05-08 19:03:58 -04:00
Andrew Gallant
7b73fde972 Stop storing the underlying fs::DirEntry.
An fs::DirEntry is in fact quite large---over 256 bytes. This results in
a lot of time spent memmoving it around.

This does result in a small performance regression on Windows for callers
that ask for the `metadata` of a directory entry.
2016-09-16 17:54:43 -04:00
Jos van den Oever
28c1fc7207 Add ability to sort the walked entries
This adds a test and extends the walkdir example with --sort.

A simple benchmark on a directory with one million files (warm cache) shows:
 walkdir ~          2.0s
 walkdir --sort ~   2.8s
 walkdir ~ | sort  19.5s
2016-08-02 22:44:05 +02:00
Andrew Gallant
daf1ee1f24 Lots of polish. Docs. Refactoring. Simplifying. 2015-09-27 00:59:19 -04:00
Andrew Gallant
a25285e59d Custom DirEntry type.
QuickCheck action.
2015-09-22 21:35:03 -04:00
Andrew Gallant
ec511ef902 Start testing. 2015-09-20 21:10:38 -04:00
Andrew Gallant
76e3ffdccf more polishing, support depths 2015-09-20 12:29:56 -04:00
Andrew Gallant
eaf24e463c initial prototype, basic functionality 2015-09-20 01:47:14 -04:00