perf: sequential fetch of `InRelease`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 57/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- backend, performance
Direzione di ricerca
Start in internal/archive/archive.go and trace how setupIndexes calls fetchRelease for each suite, including signature verification and parsing. The issue proposes concurrent suite fetches; first check the existing archive tests and how they cover suite setup. Done means fetching the configured suites concurrently while preserving verification and parsing behavior, with tests covering the result.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
context
a cache-hot chisel cut of one small slice takes about 0.6-1.2s, and most of that is three InRelease round trips done one after another. setupIndexes (internal/archive/archive.go) loops over the suites in order and for each one fetchRelease downloads InRelease, verifies the signature and parses it before the next suite starts. with suites: [resolute, resolute-security, resolute-updates] that is three sequential https requests to the archive, 0.1-0.45s each depending on the archive's mood.
three runs of the same hot (🌶️) cut of python3-yaml_libs:
mean std <- 3 runs
suite details x3 530ms 290ms InRelease fetch, verify, parse; sequential
index fetch x6 80ms 20ms cache hits, parse
deb fetch + extract 260ms 20ms cache hits
total ~1s ~300ms
so 40-70% of a warm cut is waiting on 3 serial InRelease's. for a single image build it is a second, however for anything that cuts many times against one checkout it is the fixed cost of every cut (can you see a theme to my recent issues yet... 😅 non-contrived non-un-release example could be the chisel-releases ci though).
also, this gets worse with worse network (O(N) but git grad >1 so 150ms of lag will incur ~S*lag cost where S is n-of-suites aka ~3)
mean std
direct (~40ms) 600ms 30ms
proxy +150ms 1.30s 80ms
proxy +300ms 1.77s 30ms
proposal
fetch the suites concurrently.
the suite's main and universe Packages could be fetched concurrently too, which matters on a cold cache (two ~75MB downloads per suite).
optionally, we could start a spiritual successor of the discussion from #254 and honour Valid-Until for InRelease files.
- Lingua principale
- Go
- Stelle
- 434
- Fork
- 74
- Merge medio
- 1g 30m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di canonical/chisel
-
`mode` of a generated directory is random when it has a generated childForse già presa @Amadeus-22 l’ha presa 24 giorni fa. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
-
cut fails on uncompressed debForse già presa @yuminn-k l’ha presa 29 giorni fa. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
-
`prefer` drops a path when the preferred package lists it `until: mutate`Forse già presa @18Abhinav07 l’ha presa 8 giorni fa. ApertaBug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Tutte le issue di canonical/chisel
Issue simili
-
mcpx scan: flag unsafe tool namesForse già presa @zeyadbadawyy l’ha presa oggi. Apertaarea/scan enhancement good first issue priority/medium size/small
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rohitgollarahalli/mcpx#45 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Windows 主机
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Lee-xeo/Claude-Cage#1550 ·
I maintainer di solito rispondono entro 1 giorno
-
(bug) ui: spanPaint can index spans past their end (panic: index out of range)Forse già presa @MaxMiksa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno