Click here to Skip to main content
16,007,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a question on heap..... Pin
Bob Stanneveld10-Jun-05 9:50
Bob Stanneveld10-Jun-05 9:50 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 12:35
Toby Opferman10-Jun-05 12:35 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 12:41
Toby Opferman10-Jun-05 12:41 
GeneralRe: a question on heap..... Pin
Bob Stanneveld10-Jun-05 13:24
Bob Stanneveld10-Jun-05 13:24 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 13:36
Toby Opferman10-Jun-05 13:36 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 14:02
Toby Opferman10-Jun-05 14:02 
GeneralRe: a question on heap..... Pin
Bob Stanneveld11-Jun-05 1:25
Bob Stanneveld11-Jun-05 1:25 
GeneralRe: a question on heap..... Pin
Toby Opferman11-Jun-05 7:49
Toby Opferman11-Jun-05 7:49 
You do not need 65 Gigabytes of address space to open a 65 Gigabyte memory mapped file. You can map any portion of the file into your process for view. The location of the memory in the file is not directly related to the address that will be used in the program. You can map the last 4k of memory in the 65 Gb file and have it actually a low memory address!

"The flat-file database application example is useful in pointing out another advantage of using memory-mapped files. MMFs provide a mechanism to map portions of a file into memory as needed. This means that applications now have a way of getting to a small segment of data in an extremely large file without having to read the entire file into memory first. Using the above example of a large flat-file database, consider a database file housing 1,000,000 records of 125 bytes each. The file size necessary to store this database would be 1,000,000 * 125 = 125,000,000 bytes. To read a file that large would require an extremely large amount of memory. With MMFs, the entire file can be opened (but at this point no memory is required for reading the file) and a view (portion) of the file can be mapped to a range of addresses. Then, as mentioned above, each page in the view is read into memory only when addresses within the page are accessed."

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngenlib/html/msdn_manamemo.asp[^]

8bc7c0ec02c0e404c0cc0680f7018827ebee
GeneralRe: a question on heap..... Pin
Bob Stanneveld12-Jun-05 6:00
Bob Stanneveld12-Jun-05 6:00 
GeneralRe: a question on heap..... Pin
Toby Opferman12-Jun-05 7:32
Toby Opferman12-Jun-05 7:32 
GeneralRe: a question on heap..... Pin
Toby Opferman12-Jun-05 7:52
Toby Opferman12-Jun-05 7:52 
GeneralRe: a question on heap..... Pin
Toby Opferman12-Jun-05 8:21
Toby Opferman12-Jun-05 8:21 
GeneralRe: a question on heap..... Pin
Bob Stanneveld12-Jun-05 20:47
Bob Stanneveld12-Jun-05 20:47 
GeneralRe: a question on heap..... Pin
Toby Opferman13-Jun-05 10:28
Toby Opferman13-Jun-05 10:28 
GeneralRe: a question on heap..... Pin
Bob Stanneveld13-Jun-05 11:51
Bob Stanneveld13-Jun-05 11:51 
GeneralRe: a question on heap..... Pin
Toby Opferman14-Jun-05 12:46
Toby Opferman14-Jun-05 12:46 
GeneralRe: a question on heap..... Pin
Bob Stanneveld14-Jun-05 20:42
Bob Stanneveld14-Jun-05 20:42 
GeneralRe: a question on heap..... Pin
Toby Opferman9-Jun-05 19:14
Toby Opferman9-Jun-05 19:14 
QuestionWinsock2 -- recv() function query? Pin
arrya_amit3-May-05 19:45
arrya_amit3-May-05 19:45 
AnswerRe: Winsock2 -- recv() function query? Pin
DKT_3-May-05 20:29
DKT_3-May-05 20:29 
GeneralThe differences between "class" and "struct" in C++ Pin
inew3-May-05 19:25
inew3-May-05 19:25 
GeneralRe: The differences between "class" and "struct" in C++ Pin
Priyank Bolia3-May-05 19:30
Priyank Bolia3-May-05 19:30 
GeneralRe: The differences between "class" and "struct" in C++ Pin
S. Senthil Kumar3-May-05 20:35
S. Senthil Kumar3-May-05 20:35 
GeneralRe: The differences between "class" and "struct" in C++ Pin
Bob Stanneveld3-May-05 22:27
Bob Stanneveld3-May-05 22:27 
GeneralRe: The differences between "class" and "struct" in C++ Pin
Anonymous3-May-05 22:55
Anonymous3-May-05 22:55 

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.