kasperrisager / Apportionment.jl

MIT License
0 stars 0 forks source link

Improved method for nlargest #3

Open kasperrisager opened 9 months ago

kasperrisager commented 9 months ago

In the algorithm for largest remainders, there is a couple of lines that figure out what the n largest remainders are. This is probably better done by using DataStructures.jl that has nlargest for approx this purpose.

kasperrisager commented 9 months ago

And maybe DataStructures.jl is not even the best choice. There may need to be a few algorithms to choose from for performance purposes.