Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Performance / October 2007

Tip: Looking for answers? Try searching our database.

Why does conversion to 2.0 from 1.1 result in performance degradat

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KVin - 01 Oct 2007 21:40 GMT
Conversion to 2.0 (thro' vs2005) from 1.1, has made the app completely
unusable because of the performance degradation. It's a c# winforms,
multithreaded app, using datasets extensively.

I understand that  in 2.0 Dataset/dataTable have become more performant, and
I was expecting a performance improvement. Instead, I see loss in
performance.  I also find that app is using more memory(about 12% more) as
compared to 1.1.

I've tested the app running locally and I had expected that locally
compiled/debug app to have full trust and run-time security checks to be zero.

I did performance analysis, and I noticed following:

- % time in Run-time checks is averaging 50% ( in 1.1 it was 0)
- Total run-time checks are about 6000+/sec( in 1.1 it was 0)
- % time in GC is less than 4% ( about same as 1.1)

Has anyone else experienced this? Apparently, there are not many posts out
there with this type of problem.  

Please advise.
Chris Mullins [MVP - C#] - 01 Oct 2007 22:41 GMT
> Conversion to 2.0 (thro' vs2005) from 1.1, has made the app completely
> unusable because of the performance degradation. It's a c# winforms,
> multithreaded app, using datasets extensively.

I've worked with a number of applications that exactly match that
description, and never experienced the problem you're describing. I know
that's not of any help to you, but it does at least point the finger at your
application (which is fixable) and not the platform (which isn't).

The questions I have to ask:
- Which version of Visual Studio are you compiling with?
- Are you testing a Debug or a Release version? If it's release, do you have
"enable optimization" turned on?
- I'm assuming x86 on a Windows XP system. Are you running Vista? Is UAC
turned on?
- Are you by chance running a Debug/Checked build of the O/S?

--
Chris Mullins
schneider - 01 Oct 2007 23:32 GMT
I would also run FxCop against your code and look at security/performance
items, it may help you isolate the problems.

>> Conversion to 2.0 (thro' vs2005) from 1.1, has made the app completely
>> unusable because of the performance degradation. It's a c# winforms,
[quoted text clipped - 15 lines]
> --
> Chris Mullins
KVin - 02 Oct 2007 02:37 GMT
> I would also run FxCop against your code and look at security/performance
> items, it may help you isolate the problems.
[quoted text clipped - 18 lines]
> > --
> > Chris Mullins

1.  App is compiled with vs2005.
2. I'm testing 'debug' version compiled by vs2005.
3. I'm running x86, windows XP.
4. What's debug/checked build of o/s?
Patrick  van Dijk - 02 Oct 2007 09:44 GMT
Try using a Release build. There is a significant performance
difference in the Release vs. Debug versions on .NET 2.0.
We have seen only performance improvements when moving from 1.1 to
2.0, but alwyas compared Release versions.
KVin - 02 Oct 2007 13:45 GMT
Hi Patrick,

I tried Release version too. Sure, there's improvement, but not even close
to what I had in 1.1.  Both Debug/Release version are compiled with 'optimize
code' checked.

I am at a loss as to why an app which runs great in 1.1 has problem on
conversion to 2.0. Obviously, I am missing something.
schneider - 08 Oct 2007 03:10 GMT
I would also run FxCop against your code and look at security/performance
items, it may help you isolate the problems.

Again, this is an easy way to check for a lot of know issues...

> Hi Patrick,
>
[quoted text clipped - 5 lines]
> I am at a loss as to why an app which runs great in 1.1 has problem on
> conversion to 2.0. Obviously, I am missing something.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.