saarthdeshpande / serverless-cloud-storage

A self-hosted serverless cloud storage platform to host your own cloud storage at solely S3 rates, i.e., 50 TB /month at 1.6 INR/GB (~0.021 USD) per month.
MIT License
11 stars 2 forks source link

Large bundle size #11

Open saarthdeshpande opened 3 years ago

saarthdeshpande commented 3 years ago

Even after attempting webpack for bundling, minimum size of largest bundle is 4.6 Mb Changed imports of named exports to default. Please suggest a fix

mujtaba1747 commented 3 years ago

Use a language that compiles to a binary ?

saarthdeshpande commented 3 years ago

Please elaborate?

mujtaba1747 commented 3 years ago

It could be nice if the entire application compiles to a single binary. Like a.out ?

saarthdeshpande commented 3 years ago

Webpack takes care of the bundling. Single file with a large size would take more time to fetch.

Chunking is done, but minimum size of largest chunk is still 4.6 Mb.

On Sat, 17 Jul 2021 at 4:10 PM, Syed Mujtaba Jafri @.***> wrote:

It could be nice if the entire application compiles to a single binary. Like a.out ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/saarthdeshpande/serverless-cloud-storage/issues/11#issuecomment-881874645, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKC76FAG6N34QASZ5PKAA63TYFMZDANCNFSM474MCDWQ .

mujtaba1747 commented 3 years ago

Not understanding the jargon because Im a noob. Ill read about it ...

omega07 commented 3 years ago

IMO, chunking and code-splitting is the best we can do to make the file size less. but the way it works is still a mystery to me .. since webpack is the most beautiful thing in this world, i will try and look into it.