openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

Optimize getting web resources

Open amvanbaren opened this issue 5 months ago • 1 comments

This would remove the need to download the whole extension package to extract a file from it.

  • Create extension package manifest that contains for each entry: name, offset, compressedSize, compressionMethod.
  • Use Apache commons-compress to get accurate offset data.
  • Use offset and compressedSize to download specific byte range instead of the whole ZIP archive.
  • Decompress the downloaded byte range using compressionMethod.
  • Cache the decompressed byte range.

Extra: use Accept-Encoding request header to check if the server can directly redirect to Azure Blob Storage using Range and Content-Encoding headers.

amvanbaren avatar Jul 16 '25 14:07 amvanbaren

Can I work on this issue?

kishansinghifs1 avatar Oct 04 '25 19:10 kishansinghifs1