peter1591 / hearthstone-ai

A Hearthstone AI based on Monte Carlo tree search and neural nets written in modern C++.
302 stars 49 forks source link

Profile Guided Optimization #48

Closed peter1591 closed 7 years ago

peter1591 commented 7 years ago

Runtime analysis of a execution hot path is crucial. It sometimes make a JIT out-performed a static program like C++.

Profile-guided optimization maybe a rescue for this. https://textslashplain.com/2016/01/10/getting-started-with-profile-guided-optimization/

g++ optimization flags: -fprofile-generate -fprofile-use -fprofile-dir

peter1591 commented 7 years ago

Fixed in commit: 01bb0a0d