On Mon, Sep 29, 2003 at 10:00:09AM -0400, Dan Sugalski wrote:

> So, I've two options:
> 
> 1) When one or both of the classes a MMD function is installed for don't
> exist, we give them both class numbers (but don't load them) so when the
> classes *are* later loaded they already have numbers
> 
> 2) We put the functions in a 'pending' list and install them when (if) the
> missing classes are later loaded
> 
> I can see it going either way, and I'm not sure which would be better.
> (It's important to note that this is strictly an internal issue, since
> bytecode'll never know one way or the other) Opinions?

Which way uses less RAM?
Which is faster up front?
Which is faster if most of the functions and classes are eventually used?
Which is faster if most functions and classes aren't used
Which is better for a serialisation call while things are only partially
loaded?


I've got no real idea on any of these, apart from a hunch that assigning
numbers to classes that aren't loaded (yet) is going to be needed for
other things.

Nicholas Clark

Reply via email to