PC Review


Reply
Thread Tools Rate Thread

Win32 vs .Net performance

 
 
=?Utf-8?B?TVBG?=
Guest
Posts: n/a
 
      23rd Jun 2006
I am not trying to smack a hornets nest, but is there any way to achieve
near-Win32 performance from .Net apps?

I'm porting a VB6 app to .Net and the difference in performance is notable.
I'm using 3rd party controls from the same vendor and have trimmed as much
"fat" from them as possible. Granted, there is functionality with the .Net
controls that doesn't exist in the COM versions, but even with the "canned"
controls, the difference can be seen.

Rest assured, I'm playing by all of the OO (& MS for that matter) guidelines
in the re-write, custom objects, stored procedures for nearly everything,
limited amounts of data and a properly indexed database.

Can anyone offer any tips for increasing performance with .Net windows forms
apps? I'm considering migrating to Delphi since Borland still supports the
Win32 platform.

Sadly, it appears the runtime for Winforms performance is coming to that of
Java runtime and Swing.

Thanks,

Morgan
 
Reply With Quote
 
 
 
 
JJ
Guest
Posts: n/a
 
      23rd Jun 2006
I come from a long line of hardcore development(15+ years) (x86/68000 ASM,
C/C+ realtime controls and even live streaming). Without knowing
specifically what/where you are trying to improve (performance), below is my
stab at your problem.

Oviously, .NET comes with much overhead. MS have done an amazing job with
the JIT to create native code and improve performance. Nonetheless,
abstraction comes with a price.

Currently, I use .NET 2005 for most of our solutions. Below are some things
you can look at.

1. Indentify your bottle neck and improve it (spot check).
2. Minimize reflection usage.
3. Use threadpool instead of launching your own thread when multithreading.
4. When multi-threading consider context switching when determining number
of threads.

What I've found is that most performance problems are usually confined to
small section of codes. Identify those and you should be able to resolve
most if not all of your problems.

Good luck.
Jeff www.ruamkwamkid.com


"MPF" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am not trying to smack a hornets nest, but is there any way to achieve
> near-Win32 performance from .Net apps?
>
> I'm porting a VB6 app to .Net and the difference in performance is
> notable.
> I'm using 3rd party controls from the same vendor and have trimmed as much
> "fat" from them as possible. Granted, there is functionality with the .Net
> controls that doesn't exist in the COM versions, but even with the
> "canned"
> controls, the difference can be seen.
>
> Rest assured, I'm playing by all of the OO (& MS for that matter)
> guidelines
> in the re-write, custom objects, stored procedures for nearly everything,
> limited amounts of data and a properly indexed database.
>
> Can anyone offer any tips for increasing performance with .Net windows
> forms
> apps? I'm considering migrating to Delphi since Borland still supports
> the
> Win32 platform.
>
> Sadly, it appears the runtime for Winforms performance is coming to that
> of
> Java runtime and Swing.
>
> Thanks,
>
> Morgan



 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9yaXMgWndhZW5lcG9lbA==?=
Guest
Posts: n/a
 
      23rd Jun 2006
Hi Morgan,

I too have a VB5/VB6 background, but the last 3 years I have spent most of
my time programming in VB.NET, and except for the loading of Forms, which
seems to be (much) slower, my experience is that the overall performance of
..NET applications is much better than VB6.

Of course I cannot tell you what the problem is in your application, but
sometimes what I have done to improve the user experience for slowly loading
forms, is to just display the form without loading data in the Form_Load
event, but start a timer instead (20 milliseconds for example) and then load
the data when the timer elapses. This gives .NET plenty of time to draw the
form faster and it looks nicer.

Hope this helps,

Joris




"MPF" wrote:

> I am not trying to smack a hornets nest, but is there any way to achieve
> near-Win32 performance from .Net apps?
>
> I'm porting a VB6 app to .Net and the difference in performance is notable.
> I'm using 3rd party controls from the same vendor and have trimmed as much
> "fat" from them as possible. Granted, there is functionality with the .Net
> controls that doesn't exist in the COM versions, but even with the "canned"
> controls, the difference can be seen.
>
> Rest assured, I'm playing by all of the OO (& MS for that matter) guidelines
> in the re-write, custom objects, stored procedures for nearly everything,
> limited amounts of data and a properly indexed database.
>
> Can anyone offer any tips for increasing performance with .Net windows forms
> apps? I'm considering migrating to Delphi since Borland still supports the
> Win32 platform.
>
> Sadly, it appears the runtime for Winforms performance is coming to that of
> Java runtime and Swing.
>
> Thanks,
>
> Morgan

 
Reply With Quote
 
Claes Bergefall
Guest
Posts: n/a
 
      23rd Jun 2006
Where are you getting performance problems? Only thing I've experienced is
that graphics rendering is slow. Everything else seems to be just as quick
as in plain Win32 code.

That graphics is slow is because a bunch of stuff in .NET uses GDI+ and it
doesn't support hardware acceleration (yet). Hopefully that will be
supported in the near future.

/claes


"MPF" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am not trying to smack a hornets nest, but is there any way to achieve
> near-Win32 performance from .Net apps?
>
> I'm porting a VB6 app to .Net and the difference in performance is
> notable.
> I'm using 3rd party controls from the same vendor and have trimmed as much
> "fat" from them as possible. Granted, there is functionality with the .Net
> controls that doesn't exist in the COM versions, but even with the
> "canned"
> controls, the difference can be seen.
>
> Rest assured, I'm playing by all of the OO (& MS for that matter)
> guidelines
> in the re-write, custom objects, stored procedures for nearly everything,
> limited amounts of data and a properly indexed database.
>
> Can anyone offer any tips for increasing performance with .Net windows
> forms
> apps? I'm considering migrating to Delphi since Borland still supports
> the
> Win32 platform.
>
> Sadly, it appears the runtime for Winforms performance is coming to that
> of
> Java runtime and Swing.
>
> Thanks,
>
> Morgan



 
Reply With Quote
 
Morgan Fears
Guest
Posts: n/a
 
      24th Jun 2006
Thanks all for your feedback, I appreciate it.

The app involved is a client/server app(hiss.. word from the 90's ). The
most used form is "heavy", it has a tab sheet and 3 Infragistics grids on
it. Trying to follow all of the OO purists & MS guidelines, the performance
just didn't pan out. I moved from custom objects to straight DataTable binding
and the performance got better. I'm not faulting the Infragistics grid because
the customer loves the functionality, or the Framework, but I guess you get
to a point where you have to go with what works best and in this case it's
databinding to datasets/datatables.

Thanks again,

Morgan


> Where are you getting performance problems? Only thing I've
> experienced is that graphics rendering is slow. Everything else seems
> to be just as quick as in plain Win32 code.
>
> That graphics is slow is because a bunch of stuff in .NET uses GDI+
> and it doesn't support hardware acceleration (yet). Hopefully that
> will be supported in the near future.
>
> /claes
>
> "MPF" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> I am not trying to smack a hornets nest, but is there any way to
>> achieve near-Win32 performance from .Net apps?
>>
>> I'm porting a VB6 app to .Net and the difference in performance is
>> notable.
>> I'm using 3rd party controls from the same vendor and have trimmed as
>> much
>> "fat" from them as possible. Granted, there is functionality with the
>> .Net
>> controls that doesn't exist in the COM versions, but even with the
>> "canned"
>> controls, the difference can be seen.
>> Rest assured, I'm playing by all of the OO (& MS for that matter)
>> guidelines
>> in the re-write, custom objects, stored procedures for nearly
>> everything,
>> limited amounts of data and a properly indexed database.
>> Can anyone offer any tips for increasing performance with .Net
>> windows
>> forms
>> apps? I'm considering migrating to Delphi since Borland still
>> supports
>> the
>> Win32 platform.
>> Sadly, it appears the runtime for Winforms performance is coming to
>> that
>> of
>> Java runtime and Swing.
>> Thanks,
>>
>> Morgan
>>



 
Reply With Quote
 
New Member
Join Date: Jul 2012
Posts: 1
 
      16th Jul 2012
.net performance I prefer the most reason is that it us related to implementation of Multicast Delegate used in events. With one subscriber, this delegate consumes minimum memory resources.
http://www.dapfor.com/en/net-suite/n...es/performance
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Win32 DLL & Win32 Static Library =?Utf-8?B?RWl0YW4=?= Microsoft Dot NET 1 18th Apr 2005 06:31 AM
Win32.SillyDI.FG, Win32.BETTInet,HTML.MHTMLREDIR/EXPLOIT,WIN32.SILLYDL.HQ Terry Windows XP New Users 3 8th Apr 2005 03:11 PM
Win32.Poza & Win32.Nachi Worms Bob P. Windows XP Security 1 26th Oct 2003 04:01 AM
help .....i had the win32.pinfi (win32 parite b) virus.....and now Platinumpoppa2003 Windows XP Help 1 19th Oct 2003 11:37 PM
HELP!! Win32/KillAV.G and Win32/SCKeyLog.20 on computer Lesa Microsoft Windows 2000 CMD Promt 0 16th Sep 2003 07:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:20 AM.