Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Get KnowHOWs to publish a method cache. ~9% performance improvement i…
…n 'loop up to 10 million' benchmark.
  • Loading branch information
jnthn committed Nov 8, 2011
1 parent 9cd77d6 commit b1a90ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dotnet/runtime/Metamodel/KnowHOW/KnowHOWBootstrapper.cs
Expand Up @@ -94,7 +94,9 @@ public static RakudoObject Bootstrap()
}));
KnowHOWMeths.Add("compose", CodeObjectUtility.WrapNativeMethod((TC, Ignored, Cap) =>
{
var HOW = CaptureHelper.GetPositional(Cap, 0) as KnowHOWREPR.KnowHOWInstance;
var Obj = CaptureHelper.GetPositional(Cap, 1);
Obj.STable.MethodCache = HOW.Methods;
return Obj;
}));
KnowHOWMeths.Add("attributes", CodeObjectUtility.WrapNativeMethod((TC, Ignored, Cap) =>
Expand Down

0 comments on commit b1a90ab

Please sign in to comment.