Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
To avoid gcc bugs in the production software (such as MDEV-19709), it could be better to
compile with less aggressive optimization.
Some people state that -O2 is faster than -O3, due to more compact code (less inlining or loop unrolling) and as result less cache misses . See https://stackoverflow.com/a/19985801/547065 for example.
The task is about benchmarking, and giving recommendations. From the quality standpoint, we can assume that -O2 would have less bug, and it is better tested, since it is the optimization used most often for production software.
From performance standpoint, the right -O level needs to be measured.
Attachments
Issue Links
- relates to
-
MDEV-14900 Upstream 10.4 debian patches
- Closed
-
MDEV-19709 Bitmap<128>::merge etc may crash on older GCC versions
- Closed