Function top_artists

Source
pub fn top_artists(catalog: &Catalog, limit: usize) -> Vec<(Id, usize)>
Expand description

The most present artists, by number of distinct tracks they are audible on.

Writing and production credits are excluded on purpose: a songwriter who never performs would otherwise outrank the singers of their own catalog. Those credits remain visible on the artist page and in top_writers.

We count tracks, not credits: an artist who is both performer and composer of a piece must not count it twice.