android/ios: artist artwork fallback fetches each artist source twice

オープン
#1,105 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
kotlin

調査の方向性

Start by reading the #1103 changes around artist source fallback and ArtworkFetcher.kt:82-87, where undersized remote images are dropped from disk cache. Trace how artist and album sources are fetched and how the size check uses the fetched image. Done when artist sources are fetched once, the first undersized image is returned before album sources, and the duplicate sources and ARTIST_IMAGE_MINIMUM_SIZES are removed.

索引モデルが issue の本文から書いたものです。

説明

enhancement impact:U1 P3 reach:R2 size:M

The #1103 chain tries each artist source at >=500px, then again at any size. On Android an under-size remote image is dropped from the disk cache (ArtworkFetcher.kt:82-87) and there is no HTTP cache, so an artist whose only image is small downloads it twice, and every miss (S2 404, no server image) is requested twice. With the name lookup on for all artists, that doubles first-load misses. iOS rereads from URLCache, so only misses double there.

Better: one pass over artist sources; the fetcher keeps the first under-size image it already holds for the size check and returns it before the album sources. Drops the duplicated sources and ARTIST_IMAGE_MINIMUM_SIZES.

Seen in review of 79e4b2e8d (#1103).

Impact U1 (extra requests, slower first artwork load) · Reach R2 (every artist without a large image) · Implemented: no · Design fit: fits · Complexity: M

主要言語
Kotlin
スター
233
フォーク
28
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

timusus/Shuttle2 のほかの issue

timusus/Shuttle2 の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。