Static and Dynamic Displacement and HP

That could be a reason, I've heard that engines that need more rpm to make similar hp aka smaller engines need larger port cross section then larger displacement lower rpm similar hp engine.

So if port shape and maybe some of the cam timing were tailored for the smaller cid
We would have equal capability ?
Both engines are limited in cross section. At what point do we stop adding port volume and rpm to achieve the same power? We know the added port volume and camshaft changes will almost always result in moving the power up in the rpm range correct?