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.

c++ unmanaged vs managed arrays

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
buu - 28 Sep 2007 07:02 GMT
how much faster are unmanaged vs. managed arrays? (.net 2.0 framework)
Michael Nemtsev, MVP - 29 Sep 2007 12:26 GMT
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>
Vadym Stetsiak - 02 Oct 2007 23:16 GMT
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)
Ben Voigt [C++ MVP] - 03 Oct 2007 15:05 GMT
> 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.

> If you'll provide more background to your question it will be possible to
> give more concrete answer.
[quoted text clipped - 6 lines]
> b> how much faster are unmanaged vs. managed arrays? (.net 2.0
> b> framework)

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.