Re: Huge arrays

From: Avatar Zondertau (avatarzondertau_at_hotmail.com)
Date: 05/20/04

  • Next message: Zinvob: "Re: Isn't anyone here up for a MinimumHeap challenge?"
    Date: 20 May 2004 05:42:43 -0700
    
    

    > u mean to write the values on the drive?

    Yes - you store the array in a file. When you need to use some part of
    the array you load it from disk and, if you changed it, you write it
    back afterwards.

    > So there is a limitation in general the arrays I can have cannot be
    > in total more that 2GB in memory?

    Yes, in the Win32 environment you can never have arrays larger than 2
    GB in memory. In practice the size of the largest array you can
    allocate is even somewhat smaller, because other things are loaded in
    the process space as well (your application, possibly DLLs or packages
    and the stack).

    In Win64 creating a large array like this will be possible, but for
    this to work you need
    - A 64-bit CPU (only few people have one)
    - A 64-bit Windows version (i think one exists already, but i'm not
    sure)
    - A 64-bit compiler (Delphi doesn't have this - yet?)


  • Next message: Zinvob: "Re: Isn't anyone here up for a MinimumHeap challenge?"

    Relevant Pages

    • Re: hacker challenge - traverse a list
      ... He means that you can use as much additional memory as you like, ... any Osolution can use a stack of arbitrary bounds by mapping ... even misused computational complexity theory does not ... Harter's test by pointing out that a program with a large array ...
      (comp.programming)
    • Re: On VLAs and incomplete types
      ... from a stack. ... The real advantage, though, comes with code like your 2D array ... allocate and deallocate memory, so there must be an explanation for ... The generation of dynamic memory is more complicated and requires ...
      (comp.lang.c)
    • Re: Memory Limit
      ... What is the maximum size of the array that I can create? ... Is Heap or Stack based variable declaration just affects the speed? ... Since Windows uses a virtual memory model, ...
      (microsoft.public.vc.language)
    • Re: Fast string operations
      ... Looping: I thought looping over arrays in managed code was "slow" ... array handling and such. ... The problem with TrimHelper is that it always returns a new string instance. ... The customer perceives this as a memory leak. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Storing large number of values in 2D array
      ... array.How can I store them and retrieve them later? ... around 32 000 bytes for the 2D array. ... But that was a memory efficient solution, ... I have seen proposals to add to C ...
      (comp.lang.c)