lakwet / voracious_sort

Voracious radix sort
MIT License
58 stars 1 forks source link

Slow compilation time #5

Closed jon-chuang closed 3 years ago

jon-chuang commented 3 years ago

should investigate why. Not using much macros or trait specialisation right? Maybe check if using foo::*; and instead use features for gated compilation?

lakwet commented 3 years ago

if you run the speed test, you can comment all the other tests (in the mod file), it is way faster to compile speed test are commented in the repo

it is not a small repo, and with traits, there are a lot of code to optimize

btw i use the master branch as the last released version there is one branch by released version

the working branch is the "dev" branch

lakwet commented 3 years ago

I am adding Rust "feature" so in the next version (coming soon) you will be able to use only the single thread sort without having to compile the code of the multithread sort and its dependency. This should be faster. I hope I will be able to release the v1.1.0 as soon as possible.

jon-chuang commented 3 years ago

I think making the rayon dependency optional on that feature would also be nice, as our code base using voracious has a no_std compilation mode.

lakwet commented 3 years ago

version 1.1.0 is released, you can use single thread sort without having to build rayon as dependency https://crates.io/crates/voracious_radix_sort