tag:blogger.com,1999:blog-8942599.post6748838626922051559..comments2024-03-15T03:24:33.607-04:00Comments on the urban canuk, eh: Using RuntimeTypeHandles to improve Memory of .NET Appsbryanhttp://www.blogger.com/profile/01332614158223702009noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8942599.post-86254869911514724702012-10-10T15:15:00.616-04:002012-10-10T15:15:00.616-04:00@kwood,
I believe the pointer is to the Type in t...@kwood,<br /><br />I believe the pointer is to the Type in the AppDomain, so it's only good during that instance. JIT should not impact how the CLR refers to the types.<br /><br />I should point out that I've only ever used this in a demo application, and the benefit is only if you had massive amounts of types being loaded.bryanhttps://www.blogger.com/profile/01332614158223702009noreply@blogger.comtag:blogger.com,1999:blog-8942599.post-5406582287806387292012-10-10T12:13:49.794-04:002012-10-10T12:13:49.794-04:00I am liking this technique. Do you think the Runti...I am liking this technique. Do you think the RuntimeMethodHandle's Value property could change (as it's an IntPtr to the JITed method - and it could be re-JITed in the future?) so is not suitable as using as a key in a dictionary?kwoodhttps://www.blogger.com/profile/10053196971160188730noreply@blogger.comtag:blogger.com,1999:blog-8942599.post-10578710222768363342012-10-10T12:11:37.759-04:002012-10-10T12:11:37.759-04:00I am liking this technique. Do you think the Runti...I am liking this technique. Do you think the RuntimeMethodHandle's Value property could change (as it's an IntPtr to the JITed method - and it could be re-JITed in the future?) so is not suitable as using as a key in a dictionary?kwoodhttps://www.blogger.com/profile/10053196971160188730noreply@blogger.com