Re: [Ikvm-developers] GetTypeWrapperFromObject() performance
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2016-10-10 15:24:53
|
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:ig...@wi...] Sent: Monday, October 10, 2016 16:05 To: ikv...@li... 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 |