issues
search
serverless
/
dashboard
MIT License
26
stars
10
forks
source link
[Python Lambda SDK] Remove byte-code from layer
#744
Closed
selcukcihan
closed
1 year ago
selcukcihan
commented
1 year ago
Description
Related issue
https://linear.app/serverless/issue/SC-606/python-sdk-very-large-extension-layer-size
When creating the lambda layer, remove the byte-code (
__pycache__/*.pyc
files)
The removed files will be auto-generated by Python anyway, when the layer is mounted and gets imported.
Bundle size is down to 330KB from 650KB on my dev environment
The removal improves INIT time by around 30ms.
Testing done
Integration tested
Performance tested
selcukcihan
commented
1 year ago
@medikoo ready for review 🙏
Description
__pycache__/*.pyc
files)Testing done