Open mprimi opened 2 years ago
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.
.List()
_loadFile()
This is unnecessary. _loadBundle could skip loading files, and we could lookup just the one element that is wanted, by filename.
_loadBundle
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.
_loadBundle
could skip loading files, and we could lookup just the one element that is wanted, by filename.