nasefa icon indicating copy to clipboard operation
nasefa copied to clipboard

Serving a single file via web, loads the entire bundle (unnecessarily)

Open mprimi opened this issue 3 years ago • 0 comments

When a file is requested via web:

handleBundleFileDownload > loadBundleFile > _loadBundle

The latter does a bucket .List() and then _loadFile() on each element. Finally, the list of files is traversed looking for a filename match.

This is unnecessary. _loadBundle could skip loading files, and we could lookup just the one element that is wanted, by filename.

mprimi avatar Jun 29 '22 18:06 mprimi