On 2017-02-17 11:14, Stephan Kulow wrote:
Why would we prefer every user compiling over us building once?
a) it is not the users but their machines compiling in %post or such b) it is very fast I did a quick benchmark on a 2.1GHz CPU via https://gist.github.com/bmwiedemann/2db103cda98d9c750ff27e3f92f67e37 which found that compiling 400000 lines or 14MB worth of python source files created 14MB .pyc files, within 1.6 seconds. Compressing those into a tar.xz of 2.7MB took 6.7s and uncompressing took 0.2 seconds. Now, you might think that users save 1.4 seconds when uncompressing the precompiled .pyc files, but they also have to download them first, which makes it only be faster when they have download speeds of >2MByte/s per machine (=16MBit/s per machine) which unfortunately is not true everywhere, especially in Germany aka Internet-Neuland. on slower CPUs the balance might be better for precompiling, though. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org