usre faster math for _S builds
similar to -ffast-math, but still supports NaN and infinites (needed for sunrise/sunset calculations) 10%-20% faster on -S3
This commit is contained in:
@@ -1270,7 +1270,9 @@ build_flags =
|
||||
build_flags =
|
||||
-O2 ;; optimize for performance instead of size
|
||||
;-ffast-math ;; gives a few (2-5) percent speedup on ESP32-S3, but causes slight slowdown on classic ESP32
|
||||
-mtarget-align -free -fipa-pta ;; these are very useful, too
|
||||
-funsafe-math-optimizations -fsingle-precision-constant ;; less dangerous than -ffast-math; still allows the compiler to exploit FMA and reciprocals (10% faster on -S3)
|
||||
;; -mtarget-align ;; this one is included in -O2, so its not necessary to explicitly add it
|
||||
-free -fipa-pta ;; these are very useful, too
|
||||
-fno-jump-tables -fno-tree-switch-conversion ;; needed
|
||||
-freorder-blocks -Wwrite-strings -fstrict-volatile-bitfields ;; needed
|
||||
build_unflags =
|
||||
|
||||
Reference in New Issue
Block a user