From: Mintz, Yuval > Sent: 30 January 2017 17:56 > > How many different implementations of 'ops->adjfreq' are there? > > If there is only one you don't need an indirect call. > > There's only one implementation. But qed publishes its functions to > qede [and other modules] by structs of operations and not by > exporting symbols directly, and I don't see a reason to change that > paradigm here. > [Although I might be mistaken about that last bit]
If any of the functions are on 'hot paths' the cost of the indirect call is likely to be measurable. On a lot of cpus it will be a pipeline stall. The double-indirect almost certainly generates a stall. David