On Tue, 2004-08-10 at 09:16, Nicholas Clark wrote:

> Does the structure change at runtime? (ie can one register new dynamically
> loaded NCI helper code?)

If I understand what Dan wants, no.  Unless the platform has a JIT that
can generate stubs for all valid NCI signatures, it has to fall back to
the compile-time structure of pointers to stub functions.

> If not, a generated switch statement would work as well as a data structure,
> surely?

Depends on the compiler and how well it optimizes said switch
statement.  A good compiler could probably beat the hash, but overall I
suspect the hash will work just fine almost everywhere.

-- c

Reply via email to