Skip to content

Commit

Permalink
Have KnowHOW publish a method cache, which should avoid a bunch of me…
Browse files Browse the repository at this point in the history
…thod cache misses and the resulting .^find_method call.
  • Loading branch information
jnthn committed Sep 4, 2011
1 parent 41e1fd8 commit f8a2d0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/6model/knowhow_bootstrapper.c
Expand Up @@ -99,7 +99,9 @@ static void find_method(PARROT_INTERP, PMC *nci) {
static void compose(PARROT_INTERP, PMC *nci) {
PMC * unused;
PMC *capture = Parrot_pcc_get_signature(interp, CURRENT_CONTEXT(interp));
PMC *self = VTABLE_get_pmc_keyed_int(interp, capture, 0);
PMC *obj = VTABLE_get_pmc_keyed_int(interp, capture, 1);
STABLE(obj)->method_cache = ((KnowHOWREPRInstance *)PMC_data(self))->methods;
unused = Parrot_pcc_build_call_from_c_args(interp, capture, "P", obj);
}

Expand Down

0 comments on commit f8a2d0a

Please sign in to comment.