Added prefetching anime objects for anime lists

This commit is contained in:
Eduard Urbach 2017-07-05 13:58:37 +02:00
parent 1f33df224b
commit 9d28c652c0

View File

@ -30,11 +30,6 @@ func BenchmarkRenderAnimeList(b *testing.B) {
user, _ := arn.GetUser("4J6qpK1ve")
animeList := user.AnimeList()
// Prefetch
for _, item := range animeList.Items {
item.Anime()
}
b.ReportAllocs()
b.ResetTimer()