nasefa
nasefa copied to clipboard
Serving a single file via web, loads the entire bundle (unnecessarily)
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.