Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mprimi opened this issue Jun 29, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@mprimi
Copy link
Owner

mprimi commented Jun 29, 2022

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 mprimi added the enhancement New feature or request label Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant