1. A method performed by a computing device, comprising: obtaining profile data from execution of a binary code on the computing device, the profile data including a density of multiple functions in the binary code; providing the density values to a linker; and modifying, by the linker, the binary code based on the density of the functions to generate an modified binary code, the modifying rearranging functions in decreasing order of density.