readme: document work around for GCC 10.1 O2+PGO regression

This commit is contained in:
Daniel Eklöf 2020-05-25 21:21:49 +02:00
parent a324004fdb
commit 2541060ae4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -317,8 +317,11 @@ A note on compilers; in general, foot runs **much** faster when
compiled with gcc instead of clang. A profile-guided gcc build can be
more than twice as fast as a clang build.
**Note** GCC 10.1 has a performance regression that affects foot. A
PGO build is about 30-40% slower with GCC 10.1 compared to GCC 9.3.
**Note** GCC 10.1 has a performance regression that severely affects
foot when doing PGO builds and building with `-O2`; it is about 30-40%
slower compared to GCC 9.3.
The work around is simple: make sure you build with `-O3`.
## Installing