openvsx
openvsx copied to clipboard
Optimize getting web resources
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
offsetandcompressedSizeto 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.
Can I work on this issue?