> More measurements show that the overhead is NOT due to
> external shared object "linkage" but due to the function being called via
> a function pointer - not depending on whether the function is in the
> primary code or in a shared object.
Interesting. But also surprising (to me).
Could you explain why it takes an order of magnitude longer to
jump to a function via a pointer as compared to a direct reference ?
(note: I'm not very knowledgeable in low-level programming, just a
tiny idea of some assembly instructions).
- NC
Post a reply to this message
|