A big part of how quick an engine can rev is the weight of the rotating assembly (from the balancer to the wheels), part of it does come down to cam timing.
More duration and a late closing intake will affect the amount of work the piston can do. Typically the effect is pretty negative in the low rpm range (low momentum in the air column), but the gains are substantial in the upper revs. Resonance, wave pulses, and dynamic compression are all involved. It would take a thesis paper to explain it all in depth.
At the end of the day a torque engine doesn't like to rev, and a hp motor does.