TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Optimized Python Docker Image

59 pointsby webologyover 7 years ago

7 comments

Davieyover 7 years ago
Binary docker image, with no (public) reproducible build system? No thanks.
评论 #15834904 未加载
评论 #15834260 未加载
znpyover 7 years ago
So I see that profile-guided optimization are being used.<p>Profile-guided optimization, in layman terms, means that you run you code under a profiler for a while, see what parts (branches, functions, data structures etc) are being used the most and use this information to make a build of your code that considers the profiler&#x27;s findings when doing optimization.<p>So what does it mean? It means, basically, that revsys is publishing a python build that is optimized for <i>their</i> use-case. Which may or may not be your use-case. This is not good nor bad.<p>Still, the claim &quot;up to 19% faster&quot; is false in general (but true in a particular case -- their use case).<p>Just keep this in mind, because this python build might perform worse than a regular python build.
评论 #15837169 未加载
rcarmoover 7 years ago
I&#x27;ve been using --enable-optimizations for a while, and built my own 3.6 images a couple of weeks back.<p>Here&#x27;s the Dockerfiles and readme:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rcarmo&#x2F;ubuntu-python" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rcarmo&#x2F;ubuntu-python</a>
muxatorover 7 years ago
Am I totally misunderstanding something or there is no Dockerfile referenced? If so, is this just a binary blob I pull from a public registry?<p>I have some trust concerns about basing my infrastructure on something opaque.
评论 #15834912 未加载
alex-over 7 years ago
This was just mentioned today at north bay python.<p>Another alternative for a fast speed up by changing your base image is trying out the pypy images.
评论 #15835094 未加载
StavrosKover 7 years ago
Why aren&#x27;t these just upstreamed onto the official Python binaries?
评论 #15834157 未加载
Twirrimover 7 years ago
The 10%ish speed boost is all down to PGO, I&#x27;m assuming?
评论 #15835184 未加载