|
Re: pmc_type: msg#00650lang.perl.perl6.internals
Nicholas Clark wrote: On Fri, Oct 29, 2004 at 05:19:35PM +0200, Leopold Toetsch wrote: First, while Paolo named the thing vtable, that term collides with pmc->table. So let's call the thing method_table. Second, I've to revise my above sentence, method lookup *is* a vtable call. We have: method_pmc = object->vtable->find_method(... "the_method_str") The find_method calls the method lookup, which is a hash lookup in the objects class, and likely some more hash lookups in the classes parents. So back to your idea. We'd need a list of the top N methods of all objects and generate a sparse array of index <-> method_str mappings per object primed with the actual lookup function. For all top N methods, we'd replace the keyed find_method with an indexed find_method. Then after a successful lookup, we could replace the lookup-function with a function that returns the real method. Sounds doable, yes. leo |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: pmc_type: 00650, Nicholas Clark |
|---|---|
| Next by Date: | [perl #32239] [PATCH] Parrot m4 0.0.9: 00650, via RT |
| Previous by Thread: | Re: pmc_typei: 00650, Nicholas Clark |
| Next by Thread: | Re: pmc_type: 00650, Leopold Toetsch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |