Daniel-Liu-c0deb0t / triple_accel

Rust edit distance routines accelerated using SIMD. Supports fast Hamming, Levenshtein, restricted Damerau-Levenshtein, etc. distance calculations and string search.
MIT License
103 stars 13 forks source link

Disable Debug Output #1

Closed ncioj10 closed 4 years ago

ncioj10 commented 4 years ago

Hi, I'm pretty new to Rust so I'm not sure if there is a general way, but is it possible to disable the debug output (e.g. "Debug: Levenshtein Jewel vector type Avx1x32x8 for target "avx2".")? I want to still debug other parts of the code, but the I don't need the debug output of this library each time I use it.

Best, Nicolas

Daniel-Liu-c0deb0t commented 4 years ago

That is a good point. I originally left the debug output in there (when debug assertions are enabled) because it is very helpful for debugging the crate. I am working on an update right now to only enable debug output when a feature flag is enabled.

ncioj10 commented 4 years ago

Ok thanks a lot, this would be awesome!

Daniel-Liu-c0deb0t commented 4 years ago

Alright, if you use the latest triple_accel = "0.3.2" version, then debug output should be disabled by default. You can still get it for debugging purposes by specifying --features "debug" after cargo test or cargo build.

ncioj10 commented 4 years ago

Thank you!