|AWS Lambda Adopts Python 3.11|
|Written by Nikos Vaggalis|
|Thursday, 21 September 2023|
Recently AWS Lamda switched from Python runtime 3.10 to 3.11, promising a lot of improvement. In which parts?
Back in May we had a look at Amazon's adoption of the Python 3.10 runtime intened to take advantage of the performance improvements that version introduced, in both managed runtimes and container images. Python 3.10 enabled the use of the following enhancements when building lambda functions:
and provided the performance enhancements of that version, like the faster PEP 590 vectorcall calling convention which allows for quicker and more efficient Python function calls, particularly those that take multiple arguments.
The new 3.11 runtime brings additional improvements. Python 3.11 contains significant performance enhancements over Python 3.10 - like reduced startup time and streamlined stack frames, while the CPython specialization adaptive interpreter helps many workloads using Python 3.11 run faster and cheaper.
Talking about CPython, the related optimizations introduced in Python 3.11 makes operation an average of 25% faster than those of Python 3. 10. Along with it, Python 3.11 also provides performance-related features in the Core including:
Of course, devs can also now take advantage of the language features added in Python 3.11:
or better yet get a hold of AWS's certified container images which are regularly updated with security patches and other updates and come optimized by changing the components or dependencies included in them.
or email your comment to: email@example.com
|Last Updated ( Thursday, 21 September 2023 )|