Click here to Skip to main content
15,880,364 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dynamic Arrays Pin
Bassam Abdul-Baki30-Aug-10 5:19
professionalBassam Abdul-Baki30-Aug-10 5:19 
GeneralRe: Dynamic Arrays Pin
harold aptroot30-Aug-10 5:25
harold aptroot30-Aug-10 5:25 
GeneralRe: Dynamic Arrays Pin
JasonPSage31-Aug-10 5:05
JasonPSage31-Aug-10 5:05 
GeneralSlimList Pin
AspDotNetDev31-Aug-10 5:08
protectorAspDotNetDev31-Aug-10 5:08 
GeneralRe: SlimList Pin
Bassam Abdul-Baki31-Aug-10 5:25
professionalBassam Abdul-Baki31-Aug-10 5:25 
GeneralRe: SlimList Pin
Bassam Abdul-Baki31-Aug-10 5:30
professionalBassam Abdul-Baki31-Aug-10 5:30 
GeneralRe: SlimList Pin
Bassam Abdul-Baki2-Sep-10 14:48
professionalBassam Abdul-Baki2-Sep-10 14:48 
GeneralRe: SlimList Pin
AspDotNetDev2-Sep-10 20:10
protectorAspDotNetDev2-Sep-10 20:10 
Bassam Abdul-Baki wrote:
What would happen if you don't have a chunk large enough? Does it fail or wait?


You get an OutOfMemoryException.

Bassam Abdul-Baki wrote:
I need something much, much larger than this size


Then I think you misunderstood. If you have a "major" list that holds 10,000,000 lists that EACH hold 10,000,000 BigIntegers, that would be a total of 100,000,000,000,000 BigIntegers. If each BigInteger is at least 10 bytes, that's about 1 petabyte (read: 1,000,000 gigabytes) of data. The largest commercial hard drives sold today are about 1,000th of that size. Even some versions of 64-bit operating systems don't go that high in virtual memory.

Also, are you understanding that you would treat this list of lists of BigIntegers as a single collection of BigIntegers? The advantage is that it is physically spread into small chunks across the RAM.

Also, if you need more data (for some strange reason), you could create a third level of lists. So, you'd have a list of 10,000,000 lists of 10,000,000 lists of BigIntegers. There is probably not enough storage on the planet to store all that data.

In case you still aren't getting it, here is basically how the petabyte list would look:
C#
List<List<BigInteger>> ints = new List<List<BigInteger>>();
for(int i = 0; i < 10000000; i++)
{
    List<BigInteger> minorInts = new List<BigInteger>(10000000);
    ints.Add(minorInts);
}


GeneralRe: SlimList Pin
Bassam Abdul-Baki4-Sep-10 10:47
professionalBassam Abdul-Baki4-Sep-10 10:47 
QuestionChange/Read Language used for Non-Unicode Programs Pin
jojoba201130-Aug-10 3:14
jojoba201130-Aug-10 3:14 
AnswerRe: Change/Read Language used for Non-Unicode Programs Pin
Dave Kreskowiak30-Aug-10 3:58
mveDave Kreskowiak30-Aug-10 3:58 
QuestionRe: Change/Read Language used for Non-Unicode Programs Pin
jojoba201130-Aug-10 4:08
jojoba201130-Aug-10 4:08 
AnswerRe: Change/Read Language used for Non-Unicode Programs Pin
Dave Kreskowiak30-Aug-10 11:56
mveDave Kreskowiak30-Aug-10 11:56 
Questionabout text editor. only text editor, not server or .... Pin
Fred 3429-Aug-10 23:11
Fred 3429-Aug-10 23:11 
GeneralRe: about text editor. only text editor, not server or .... Pin
Bigdeak29-Aug-10 23:35
Bigdeak29-Aug-10 23:35 
GeneralRe: about text editor. only text editor, not server or .... Pin
Fred 3431-Aug-10 2:34
Fred 3431-Aug-10 2:34 
AnswerRepost PinPopular
Pete O'Hanlon30-Aug-10 0:35
mvePete O'Hanlon30-Aug-10 0:35 
AnswerRe: about text editor. only text editor, not server or .... [modified] Pin
PIEBALDconsult30-Aug-10 3:16
mvePIEBALDconsult30-Aug-10 3:16 
AnswerRe: about text editor. only text editor, not server or .... Pin
Eddy Vluggen30-Aug-10 8:54
professionalEddy Vluggen30-Aug-10 8:54 
QuestionParallel and Thread running some mission ( code attached ) Pin
Yanshof29-Aug-10 22:49
Yanshof29-Aug-10 22:49 
AnswerMessage Closed Pin
29-Aug-10 23:26
stancrm29-Aug-10 23:26 
GeneralRe: Parallel and Thread running some mission ( code attached ) Pin
Yanshof29-Aug-10 23:29
Yanshof29-Aug-10 23:29 
GeneralRe: Parallel and Thread running some mission ( code attached ) Pin
DaveyM6929-Aug-10 23:50
professionalDaveyM6929-Aug-10 23:50 
GeneralRe: Parallel and Thread running some mission ( code attached ) Pin
Yanshof29-Aug-10 23:55
Yanshof29-Aug-10 23:55 
GeneralRe: Parallel and Thread running some mission ( code attached ) Pin
DaveyM6930-Aug-10 0:23
professionalDaveyM6930-Aug-10 0:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.