Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
Questionwhy we need registry ? Pin
prasadbuddhika17-May-08 3:05
prasadbuddhika17-May-08 3:05 
AnswerRe: why we need registry ? Pin
PIEBALDconsult17-May-08 5:02
mvePIEBALDconsult17-May-08 5:02 
AnswerRe: why we need registry ? Pin
Hamid_RT17-May-08 7:35
Hamid_RT17-May-08 7:35 
Questionmemory footprint of Dictionary Pin
George_George17-May-08 1:50
George_George17-May-08 1:50 
AnswerRe: memory footprint of Dictionary Pin
Guffa17-May-08 3:26
Guffa17-May-08 3:26 
GeneralRe: memory footprint of Dictionary Pin
George_George17-May-08 3:35
George_George17-May-08 3:35 
GeneralRe: memory footprint of Dictionary Pin
Guffa17-May-08 6:29
Guffa17-May-08 6:29 
GeneralRe: memory footprint of Dictionary Pin
George_George17-May-08 21:31
George_George17-May-08 21:31 
Thanks Guffa,


I like your description below,

1.

--------------------
The key value pairs are kept in an internal array. When you remove an item, the key value pair structure is kept in the array (i.e. the array is not replaced with a smaller array), but the key and value properties are assigned the default value of their respective type.
--------------------

My confusion is, if the item is removed, GCed, then its memory is reclaimed and saved. But a new instance of default value of the reference type is created? So, no space saved?

2.

Sounds like the way to reduce memory footprint to maximum is to create a new one and insert only necessary ones. Right?


regards,
George
GeneralRe: memory footprint of Dictionary Pin
Guffa18-May-08 12:34
Guffa18-May-08 12:34 
GeneralRe: memory footprint of Dictionary Pin
George_George20-May-08 22:40
George_George20-May-08 22:40 
GeneralRe: memory footprint of Dictionary Pin
Guffa20-May-08 23:17
Guffa20-May-08 23:17 
GeneralRe: memory footprint of Dictionary Pin
George_George20-May-08 23:43
George_George20-May-08 23:43 
GeneralRe: memory footprint of Dictionary Pin
Guffa21-May-08 3:28
Guffa21-May-08 3:28 
GeneralRe: memory footprint of Dictionary Pin
George_George21-May-08 4:28
George_George21-May-08 4:28 
GeneralRe: memory footprint of Dictionary Pin
Guffa21-May-08 11:17
Guffa21-May-08 11:17 
GeneralRe: memory footprint of Dictionary Pin
George_George25-May-08 1:38
George_George25-May-08 1:38 
GeneralRe: memory footprint of Dictionary Pin
Guffa25-May-08 13:07
Guffa25-May-08 13:07 
GeneralRe: memory footprint of Dictionary Pin
George_George25-May-08 19:14
George_George25-May-08 19:14 
GeneralRe: memory footprint of Dictionary Pin
Guffa25-May-08 22:05
Guffa25-May-08 22:05 
GeneralRe: memory footprint of Dictionary Pin
George_George25-May-08 22:19
George_George25-May-08 22:19 
AnswerRe: memory footprint of Dictionary Pin
PIEBALDconsult17-May-08 5:50
mvePIEBALDconsult17-May-08 5:50 
GeneralRe: memory footprint of Dictionary Pin
George_George17-May-08 21:27
George_George17-May-08 21:27 
GeneralRe: memory footprint of Dictionary Pin
PIEBALDconsult18-May-08 5:01
mvePIEBALDconsult18-May-08 5:01 
GeneralRe: memory footprint of Dictionary Pin
George_George20-May-08 22:08
George_George20-May-08 22:08 
QuestionHow can I ... Pin
maresp198217-May-08 1:03
maresp198217-May-08 1:03 

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.