|
|
|
|
|
by bertr4nd
2331 days ago
|
|
We wrote this paper about it for CGO: https://research.fb.com/publications/optimizing-function-pla.... But the paper actually describes a significantly more sophisticated heuristic. My initial implementation simply used the number of perf samples divided by the size of the function, which helps make sure you’re getting the most out of your I-TLB. It worked shockingly well for its simplicity. |
|