xparq / Out_of_Nothing

Versatile entity-based simulation & visualization/gamification framework PROTOTYPE
0 stars 0 forks source link

Use GCC's devirt. hints etc. for optimizations #457

Open xparq opened 10 months ago

xparq commented 10 months ago

https://www.reddit.com/r/cpp/comments/53xb52/comment/d7x627s/?utm_source=reddit&utm_medium=web2x&context=3

You can use the gcc flag -Wsuggest-final-types and -Wsuggest-final-methods . Compile in -O3 with -flto. Gcc will tell you which classes could be devirtualized if they are marked final.

Requires #195 (GCC build)