/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

blog.henritel.com
| | nagekar.com


4.7 parsecs

Travel
| |
| | pythoninsider.blogspot.com


4.2 parsecs

Travel
| |
| | aivarsk.com

I was going through some Docker images of large applications and looking at the layer sizes with dive. A lot of space was used by installed dependencies under /usr/local/lib/python3.10/dist-packages/ and virtual environments. Yes, there were a lot of .py and .pyc files as you would expect but the largest files were the .so files. In one of the cases, there were 269M of compiled C and C++ code in shared library files (find /usr/local/lib/python3.10/dist-packages/ -name "*.so" | xargs du -hsc). I suspected that it was too much and most of them might contain the debug information. And I don't think Python developers would use the gdb and look at backtraces of C++ code. So I tried to remove the debug information with strip. And behold - the size was reduced to 1...
6.2 parsecs

Travel
| |
| | swatinem.de


15.4 parsecs

Travel
|