.
D 2026-08-18T14:41:30.651
J comment An\sarchive\srequest\stoday\sreads\sthe\sbuilt\sfile\sinto\smemory,\sbase64-encodes\sit\sinto\sa\sJSON\sop\sresult,\sand\sthe\sweb\sroute\sdecodes\sit\sback\s—\sthree\sfull\scopies\sof\sa\s13MB\spayload\splus\sa\s17MB\sstring,\sper\srequest.\sThe\sdisk\scache\sremoved\sthe\srebuild\scost\s(10.4s\scold,\s0.7s\swarm\sfor\ssqlite\strunk)\sbut\sthat\sresidual\s0.7s\sis\sentirely\sthe\scopying.\n\nThe\stension\sis\s0001\s§9:\sone\sregistry\sserves\sHTML\sand\sJSON,\sso\sthe\sweb\sroute\scannot\sbypass\sthe\sop.\sBut\sops\sreturn\sJSON\svalues\sand\san\sarchive\sis\sbytes,\swhich\sJSON\shas\sno\stype\sfor.\n\nWorth\sdeciding:\swhether\sthe\sregistry\sgrows\sa\snotion\sof\sa\sstreaming/binary\sresult\s(an\sop\sthat\syields\san\sio.Reader\splus\scontent\stype,\swith\sthe\sJSON\ssurface\sreturning\sa\sdownload\sURL\srather\sthan\sthe\sbytes),\sor\swhether\sbinary\sdownloads\sare\sdeclared\soutside\sthe\sop\sseam\swith\stheir\sown\srule.\sThe\sformer\skeeps\s§9\sintact;\sthe\slatter\sis\ssmaller\sbut\scarves\san\sexception.\n\nAlso\shere:\sa\s304\srevalidation\sstill\sruns\sthe\swhole\sop\sbefore\sthe\sETag\sis\scompared,\sbecause\sthe\sETag\scontains\sthe\sresolved\scheck-in\sand\sresolution\slives\sin\sthe\sop.\sCheap\sto\sfix\sonce\sa\sresolution\sis\savailable\swithout\sbuilding\sthe\sarchive.
J severity Minor
J status Open
J title Streaming\sbinary\sthrough\sthe\sop\sregistry:\sarchives\sare\scopied\sthree\stimes
J type Code_Defect
K 6dbaeb218dcf545420cc76c79f61221f1ed72085
U dmestas
Z bd5fda98d48314b610935aee4b3ca3f4