Tidbits | Dec. 2, 2017

Check This Out – Optimized Python

by Frank Wiles |   More posts by Frank

Turns out there are some optimizations you can do when compiling Python 3.6 and Python 3.7 that give you some significant speed improvements without any real downside.

We've paired with with Google's base Debian image that rips out systemd and all it's dependencies, which you weren't going to be using in a Docker container anyway, which yields a MUCH smaller image.

How do you use it? Pretty simple just start your Dockerfile with:

FROM revolutionsystems/python:3.7.1-wee-optimized-lto

And rebuild your image.

How much faster is it? Depending on the benchmark in question it's up to 19% faster and nearly 75% smaller than the official Python images.

You can get more details on benchmarks and how all this works on the dockerhub page. Information on build details is also available.


Need help effectively using Docker with Python or Django? We can help! Contact us or send us a quick email.

Smaller and faster Python 3.6.x images for you to take advantage of.{% else %}These are smaller and faster Python 3.5.x and 3.6.x images for you to use

2017-12-02T10:50:15.237529 2018-10-25T11:23:53.967579 2017