As far as I can tell it most has to do with the mechanical advance curve. Generally you'll find the factories prefered using ported. Doing so keeps the two advances related to their jobs. The mechanical advance main job is mostly about time in fractions of a second. Its job is to provide more lead time as increasing rpm brings the piston up quicker and quicker. It's not a 1:1 relation because the combustion efficiencies change as rpm increases. The efficiencies are different for every engine.