Strange performance problems..

  • Thread starter Thread starter Atmapuri
  • Start date Start date
A

Atmapuri

Hi!

I am calling .NET v1.1 assembly from VS2005
and even with very simple functions the code is about 10x
slower....I am suspecting Security attribute checking for
unmanaged code...

How can I figure out what is causing the slowdown?
I was calling a very short function using dissassembly
and could not notice anything special...

Thanks!
Atmapuri
 
Atmapuri,
I am afraid you'll need to provide a lot more background information on this
in order to expect any useful answers. What's the execution environment? What
kind of "very simple functions" are being called?
Peter
 
Hi!
I am afraid you'll need to provide a lot more background information on
this
in order to expect any useful answers. What's the execution environment?
What
kind of "very simple functions" are being called?

I used a profiler and 90% of the time is spent inside:

UnsafeNativeMehods::WaitMessage

What the heck is this?

It does not happen on VS2003...

Thanks!
Atmapuri
 
Hi!

I found the problem. Never measure time of the app
while it is executing within IDE... regardless of its release
or debug settings...

Thanks!
Atmapuri
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top