Closed linusheck closed 3 months ago
Hm, CI says 30.19 error: failed retrieving file 'gnutls-3.8.3-1-x86_64.pkg.tar.zst.sig' from geo.mirror.pkgbuild.com : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
Thanks for the changes. 10x faster sounds really good. The changes look good to me.
Can you try restarting the failing CI job? The error should be independent of your changes.
LGTM! Thanks for the changes.
just FYI, I currently have no rights to merge the PR :D
This PR contains small adjustments to robust VI that significantly speed up the computations (at least 10x). Profiling revealed that re-allocating the vector is costly (already pointed out by the comment) and
diameter()
changes the rounding mode on each call, which is very expensive. I could not manage to get faster sorting thanstd::sort
, although I haven't tried usingboost::container::flatmap
. I will try that in a private branch later :) for now it's a good improvement.