Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Percentage of time spent in method dispatch?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="John Lam" data-source="post: 4522568"><p>I'd be interested in doing some experiments with DynamicMethods in the</p><p>CLR to see what kind of performance gains can happen with method</p><p>dispatch. And direct method dispatch in the CLR is *very* fast, if we</p><p>consider that each parameter is a boxed object reference (4 bytes) and</p><p>the actuall call is a call indirect instruction. Dealing with closures</p><p>is a bit more problematic though, and making that go fast could be</p><p>difficult.</p><p></p><p>It's also fairly straightforward to substitute one dynamic method for</p><p>another one when a cache invalidation event occurs. It would be very</p><p>interesting to study the existing implementation's method cache to see</p><p>what the triggers for cache invalidation look like ...</p><p></p><p>Thanks for the input!</p><p>-John</p><p><a href="http://www.iunknown.com">http://www.iunknown.com</a></p></blockquote><p></p>
[QUOTE="John Lam, post: 4522568"] I'd be interested in doing some experiments with DynamicMethods in the CLR to see what kind of performance gains can happen with method dispatch. And direct method dispatch in the CLR is *very* fast, if we consider that each parameter is a boxed object reference (4 bytes) and the actuall call is a call indirect instruction. Dealing with closures is a bit more problematic though, and making that go fast could be difficult. It's also fairly straightforward to substitute one dynamic method for another one when a cache invalidation event occurs. It would be very interesting to study the existing implementation's method cache to see what the triggers for cache invalidation look like ... Thanks for the input! -John [URL]http://www.iunknown.com[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Percentage of time spent in method dispatch?
Top