Short answer, no.

Slightly longer answer -- do the math -- at 4 bytes per element an integer
array of 40 billion elements (were it possible) is around 160 GB. You are
talking about records, not integers, so you are talking terabytes of memory.
Getting the whole thing into memory is not going to happen, unless you have
a 64-bit OS on a super computer.

Waiting for the whole stream is not going to work.  You need to consider a
design that either a)  deals with processing and sending off smaller chunks
at a time af you read the stream or b) stores the whole stream into a data
store and then works on building the pieces.



-----Original Message-----
From: patrickekenney [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 5:57 PM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] Re: Max Number of Elements in a C#
Dynamic Array


I have to wait for the whole stream, that why an extremely large
dynamic array is the only way I can see to do it...

Can I get 30-40 billion elements in a C# array or another struct?

Any other thoughts?...





Yahoo! Groups Links









------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to