automatic profile guided optimization in release modes based on test cases #237
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
optimization
Milestone
Research idea:
Have a set of test cases that are designed to mimic real world payload.
Zig compiler tries various optimization techniques, runs these tests, collects performance statistics, analyzes the results of the performance statistics to try different optimization techniques, and then finally settles on an optimization strategy informed by this process.
This can be used to inform which functions to inline, which parts of the code to apply certain optimization passes to, which parts of the code to perhaps not do this (maybe the instruction cache size was important there), and in other words have an optimization process guided by test data. I believe GCC has already paved the way for a lot of this research.
The text was updated successfully, but these errors were encountered: