Added prefetching anime objects for anime lists
This commit is contained in:
parent
1f33df224b
commit
9d28c652c0
@ -30,11 +30,6 @@ func BenchmarkRenderAnimeList(b *testing.B) {
|
|||||||
user, _ := arn.GetUser("4J6qpK1ve")
|
user, _ := arn.GetUser("4J6qpK1ve")
|
||||||
animeList := user.AnimeList()
|
animeList := user.AnimeList()
|
||||||
|
|
||||||
// Prefetch
|
|
||||||
for _, item := range animeList.Items {
|
|
||||||
item.Anime()
|
|
||||||
}
|
|
||||||
|
|
||||||
b.ReportAllocs()
|
b.ReportAllocs()
|
||||||
b.ResetTimer()
|
b.ResetTimer()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user