@hackage unix-recursive0.1.0.0

Fast and flexible primitives for recursive file system IO on Posix systems

Unix Recursive

build

Blazingly fast functions for recursive file system operations. Utilizing lazy IO for constant space & computation efficiant bindigns to Posix dirstream.h api.

Comparision with other libraries:

Tests were performed on relatively modern consumer grade HW with relatively modern consumer grade M.2 SSD drive. All done on binaries compiled with optimization that are listing the same directory with 1,705,184 items.

[this lib] Unix Recursive RawFilePath/ByteString

[this lib] Unix Recursive FilePath/String

[alternative] Dir Traverse (FilePath/String is the only option)

[alternative] Dirstream (Filesystem.Path is the only option)

Testing performance

Cabal flag bin is being used for building the example binaries that can be used for measurement.

make bin

or to build and run one of the binaries:

$ stack build --flag unix-recursive:bin --exec "unix-recursive-bytestring-bin ${path-to-directory}"

Hacking

This project uses the "Perfect Haskell Preprocessor" (PHP) for generating haskell source from meta module hs. See gen directory and MakeFile before you start hackking on stuff.