Static embed files should not be decompress and compress #7107
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/enhancement
An improvement of existing functionality
As I said on #7080 (comment) , currently we use
http.FileSystem
to open a embed file on memory, that will decompress from a gzip compressed memory file and then we serve it as a http request and compress it(maybe). So I think that we can provide the gzip compressed file directly.From vfsgen, we could detect if the
File
ishttpgzip.NotWorthGzipCompressing
orhttpgzip.GzipByter
to do that.The text was updated successfully, but these errors were encountered: