Re: Generic collections vs. arrays on structs vs. class
- From: "Kevien Lee" <ironpythonster@xxxxxxxxx>
- Date: 20 Dec 2006 01:05:35 -0800
Hi buu,
may be this article help for you:
http://blogs.msdn.com/ricom/archive/2006/03/09/548097.aspx
On Dec 14, 3:32 am, "buu" <a...@xxxxx> wrote:
I started working on a performance demanding app. I created structures that
I put into an Array. Then I realized that arrays are byref objects, while
struct is byval.
Now, I presumed, that managing these objects would be faster if I would use
class instead of structure, cause I can send a reference, not the whole
object as an procedure parameter. Am I right?
but.... I realized that it would be very good to use generic collections
instead of array (that keeps classes). Would it be faster than structs on
arrays? (or even classes put in arrays).
Also, wich kind of generic collections would be the best for it?
These objects have one primary key (because of it Dictionary is one
possibility), but that object has 2-3 index keys wich are often used, but
they're not unique.
Wich way you recomend?
.
- Prev by Date: Re: .NET and multithread networks server application
- Next by Date: Re: Performance Counters
- Previous by thread: Re: Generic collections vs. arrays on structs vs. class
- Next by thread: Re: Generic collections vs. arrays on structs vs. class
- Index(es):
Relevant Pages
|
Loading