Reducing package size #2420
Replies: 7 comments 12 replies
-
Hi @frankdejonge, Thanks for the feature request. We've given this serious consideration, but we're not in a position to manage sub-trees/repositories at this time. We plan to make the SDK modular in the next major version and will likely use Satis or similar. That said, we realize package size is an issue for a number of customers and would like to know how many people would be interested in a feature that cleans up unused services. We're open to other suggestions as well— I'm going to convert this to a discussion for now so we can get an idea of what path would be best for everyone. |
Beta Was this translation helpful? Give feedback.
-
Just to clarify, anyone who is in favor of the feature I mentioned above can upvote my first comment. Anyone who is not in favor and/or has other ideas or suggestions is welcome to provide feedback. |
Beta Was this translation helpful? Give feedback.
-
Another case for reducing the package size is reducing the time to index the library in IDE (looking at you, PhpStorm). AWS SDK is by far the most released library and it takes by far the most time to index. |
Beta Was this translation helpful? Give feedback.
-
Hi all, Just wanted to mention we've just merged a feature which allows you to remove unused services. It should be available in tomorrow's release. Any feedback is welcomed and appreciated. |
Beta Was this translation helpful? Give feedback.
-
Another case for reducing the package size is when using AWS Lambda over a custom PHP provider - for example with https://bref.sh/. There is a limit to the size of the produced package which is something like 220MB. This vendor component alone accounts for almost 16% of that quota, which is huge. The dumped documentation in I suppose I'll give a shot to #2420 (comment) 🤞 |
Beta Was this translation helpful? Give feedback.
-
I'm running on bref.sh and have found the tool #2420 (comment) has been useful to take a 40 MB dependency down to 5 MB. Great job and thanks @stobrien89 and team. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, currently we are exploring making potential improvements in the AWS SDK for PHP. We have created this GitHub issue to better gather feedback from our community. Please look into the options there and vote for the things you think will add value to you, if present in the AWS SDK for PHP. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Describe the feature
It would be great if this library could publish sub-splits to publish smaller sub-packages. The current artefact is 29MB, a substantial amount of data. Many users only use a fraction of the total package size, yet the code is shipped over and over. As an example, the Symfony codebase uses sub-splits to allow independent distribution of components. Flysystem, the project I maintain, does the same for all of the adapters. I've personally set this up and would be willing to help out setting it up or answering questions about it. I believe this would be hugely beneficial for our users and also reduces the environmental impact.
Please consider this 🙏
Use Case
When I download this package, I download 29MB while I use but a fraction of the source code.
Proposed Solution
Setup splish/lite (https://github.com/splitsh/lite)
Other Information
No response
Acknowledgements
SDK version used
Irrelevant
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)Irrelevant
Beta Was this translation helpful? Give feedback.
All reactions