Enet4 / nifti-rs

Rust implementation of the NIfTI-1 format
Apache License 2.0
40 stars 11 forks source link

Use Compression::fast #23

Closed nilgoyette closed 5 years ago

nilgoyette commented 5 years ago

We wondered for a long time why our writer was much slower than NiBabel. Turns out that Compression::default() is not

  1. fast at all 2) what NiBabel does. It's misleading. It looks like they use 9 (slowest) but their default is actually 1 (fastest).

With that change, we are as fast and even faster than NiBabel.

nilgoyette commented 5 years ago

I forgot. Of course, we could make this configurable.