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.
When a file is requested via web:
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.
_loadBundlecould skip loading files, and we could lookup just the one element that is wanted, by filename.