Closed
Description
Yet another default to choose here. My expectation is that the meson.build
files go with Meson's default here (see https://mesonbuild.com/Builtin-options.html#core-options), because they're mostly used for local development.
For wheels however, it's a lot less likely that debugging is needed, and more likely the user wants small binary size and good performance. So perhaps the defaults in mesonpy
should be:
-Ddebug=false
-Dstrip=true
-Doptimization=2
(note that3
typically doesn't help much and may do some unsafe optimizations that lead to test failures)
Stripping binaries leads to ~3x size reduction, which for SciPy means we go from 400 MB to 100 MB installed size. Savings add up very quickly when doing that for multiple packages. We always strip wheels before uploading to PyPI.