Re: GetTypeWrapperFromObject() performance

Jeroen Frijters <[email protected]> Mon, 10 Oct 2016 15:24:42 +0000
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Hi Igor,

In most cases obj.getClass() == SomeClass.class is actually compiled as obj.GetType() == typeof(SomeClass). At least for the code pattern that javac generates.

Regards,
Jeroen

From: Igor Kolesnik [mailto:[email protected]]
Sent: Monday, October 10, 2016 16:05
To: [email protected]
Subject: [Ikvm-developers] GetTypeWrapperFromObject() performance

Hi,

We use an IKVMC compiled assembly under .NET.
In our code we perform obj.getClass() == SomeClass.class comparisons quite intensively.
When I run that code under a profiler it shows that those comparisons make a huge amount of the overall execution time of the code.

Basically, there is no problem as the code executes really fast.  I tried it on many different machines.  But, one of our clients reported a slow performance on their machine.  I have no idea why they see that performance issue.  They are using Microsoft terminal server environment and have all the latest Windows/.NET updates installed.

I'm wondering if anyone may have any comments/thoughts on if/why there may be performance issues related to class objects comparison.  As I understand GetTypeWrapperFromObject() is what is executing under it.

Thanks,
Igor

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers