HighTechTalks DotNet Forums  

c++ unmanaged vs managed arrays

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss c++ unmanaged vs managed arrays in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
buu
 
Posts: n/a

Default c++ unmanaged vs managed arrays - 09-28-2007 , 02:02 AM






how much faster are unmanaged vs. managed arrays? (.net 2.0 framework)



Reply With Quote
  #2  
Old   
Michael Nemtsev, MVP
 
Posts: n/a

Default Re: c++ unmanaged vs managed arrays - 09-29-2007 , 07:26 AM






Hello buu,

What exactly do u mean?
Any sample you want to compare?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


b> how much faster are unmanaged vs. managed arrays? (.net 2.0
b> framework)
b>



Reply With Quote
  #3  
Old   
Vadym Stetsiak
 
Posts: n/a

Default Re: c++ unmanaged vs managed arrays - 10-02-2007 , 06:16 PM



Hello, buu!

It depends what you're doing with them.
for unmanged arrays allocation will take more time then for managed ones.
Iteration, however, can be faster for unmanaged ones.

If you'll provide more background to your question it will be possible to
give more concrete answer.
--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Fri, 28 Sep 2007 08:02:53 +0200:

b> how much faster are unmanaged vs. managed arrays? (.net 2.0
b> framework)




Reply With Quote
  #4  
Old   
Ben Voigt [C++ MVP]
 
Posts: n/a

Default Re: c++ unmanaged vs managed arrays - 10-03-2007 , 10:05 AM




"Vadym Stetsiak" <vadmyst (AT) gmail (DOT) com> wrote

Quote:
Hello, buu!

It depends what you're doing with them.
for unmanged arrays allocation will take more time then for managed ones.
Iteration, however, can be faster for unmanaged ones.
Not so much... managed arrays are stored sequentially, access is equally
fast. But managed arrays are subject to being moved by the GC, so you can't
pass them to unmanaged code without first making a copy or pinning.

Quote:
If you'll provide more background to your question it will be possible to
give more concrete answer.
--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Fri, 28 Sep 2007 08:02:53 +0200:

b> how much faster are unmanaged vs. managed arrays? (.net 2.0
b> framework)






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.