mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-28 15:58:12 +00:00
The nRF52 Arduino core compiles with -Ofast (≈ -O3 + -ffast-math) by default, which had pushed this feature-rich solo build to ~90% flash. Unflag -Ofast and build with -Os: flash drops 90.1% → 60.9% (638 KB → 431 KB, ~200 KB reclaimed) with no loss of functionality and a negligible speed cost for a UI/mesh workload. -Os also avoids fast-math float reassociation, so it's marginally safer for the geo/distance maths. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>