Google-Apps
Hauptmenü

Post a Comment On: the urban canuk, eh

"Using RuntimeTypeHandles to improve Memory of .NET Apps"

3 Comments -

1 – 3 of 3
Blogger kwood said...

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?

12:11 PM

Blogger kwood said...

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?

12:13 PM

Blogger bryan said...

@kwood,

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.

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.

3:15 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot