in reply to OO design project ideas

Write a class hierarchy analyzer that can optimize method dispatch. Use Module::Info to figure out where a subclass gets a method. Then write a module that can pre-install the appropriate methods into the class namespace. That'd save having to look in @ISA.

In effect, you'd be moving run-time dispatch to compile-time. There are some tricky bits, but it's worth trying.

Replies are listed 'Best First'.
Re: Re: OO design project ideas
by Anonymous Monk on Feb 05, 2002 at 03:10 UTC
    Doesn't perl already have some internal optimization (i.e. caching) or is that just for UNIVERSAL::isa? Do perl make use of the UNIVERSAL::isa caching when doing method look-ups? I'd be glad to see some elaborations here.

    -Anomo