Closed RReverser closed 6 years ago
BTW, I just added the tests — let's rebase.
Hmm, cargo bench
shows around 2-6% slowdown...
So, it seems like there's no perf benefit in the PR, so I'd prefer to keep the package dependency-less, so maybe let's close? I added idiomatic error handling + tests for them in https://github.com/mourner/delaunator-rs/commit/66f46d31e13e2521b0d0436e78885b2b9b7d0979
Let me check again on Monday, don't close yet. In theory perf shouldn't have changed.
@RReverser maybe it's just noise and the perf is unchanged, but I'm still hesitant because I'm not yet convinced in the benefit — the code doesn't get much simpler, but introduces a dependency.
It does get cleaner IMO, and usually these built in methods have specialisations and potential to get faster (and also easy integration with various crates to make them easily eligible for multithreading, SIMD etc.).
OK, let's rebase and look at benchmarks again :)
Closing as stale for now.