Click here to Skip to main content
15,890,336 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:45
George_George31-Oct-08 4:45 
GeneralRe: Dictionary size issue Pin
Giorgi Dalakishvili31-Oct-08 8:18
mentorGiorgi Dalakishvili31-Oct-08 8:18 
GeneralRe: Dictionary size issue Pin
led mike31-Oct-08 4:34
led mike31-Oct-08 4:34 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:42
George_George31-Oct-08 4:42 
GeneralRe: Dictionary size issue Pin
led mike31-Oct-08 4:53
led mike31-Oct-08 4:53 
AnswerRe: Dictionary size issue Pin
Alan Balkany31-Oct-08 3:50
Alan Balkany31-Oct-08 3:50 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:01
George_George31-Oct-08 4:01 
GeneralRe: Dictionary size issue Pin
Alan Balkany31-Oct-08 4:13
Alan Balkany31-Oct-08 4:13 
1. I suggested using an integer index as the key; not the price. If there are less than 65K prices (a virtual certainty), the integer index will be only two bytes, which is shorter than a typical price.

2. The integer indexes a table of prices (which could be a simple array of strings). This is not a hash table, so collisions are irrelevant here. You just look up the price string from the index.

3. The Dictionary size is set by the constructor (http://msdn.microsoft.com/en-us/library/tk84bxf4.aspx[^]), which will determine the memory footprint of the whole Dictionary. If you make it too small, .NET will attempt to reallocate a larger storage block and copy all your data when you exceed its storage capacity.
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:26
George_George31-Oct-08 4:26 
GeneralRe: Dictionary size issue Pin
Alan Balkany31-Oct-08 5:26
Alan Balkany31-Oct-08 5:26 
AnswerRe: Dictionary size issue Pin
benjymous31-Oct-08 6:01
benjymous31-Oct-08 6:01 
Questionhow i can create connection with mysql database on server using My PDA Pin
wasimsharp31-Oct-08 0:38
wasimsharp31-Oct-08 0:38 
AnswerRe: how i can create connection with mysql database on server using My PDA Pin
#realJSOP31-Oct-08 1:13
mve#realJSOP31-Oct-08 1:13 
AnswerDouble Post - Please ignore Pin
Giorgi Dalakishvili31-Oct-08 1:49
mentorGiorgi Dalakishvili31-Oct-08 1:49 
GeneralRe: Double Post - Please ignore Pin
wasimsharp31-Oct-08 1:56
wasimsharp31-Oct-08 1:56 
AnswerRe: Double Post - Please ignore Pin
Eddy Vluggen31-Oct-08 2:09
professionalEddy Vluggen31-Oct-08 2:09 
GeneralRe: Double Post - Please ignore Pin
Giorgi Dalakishvili31-Oct-08 3:21
mentorGiorgi Dalakishvili31-Oct-08 3:21 
QuestionObtaining method signature Pin
AndrusM31-Oct-08 0:21
AndrusM31-Oct-08 0:21 
QuestionMicrosoft Sync Framework Pin
Johnboyno1an30-Oct-08 23:33
Johnboyno1an30-Oct-08 23:33 
GeneralText Width Pin
kk.tvm30-Oct-08 23:17
kk.tvm30-Oct-08 23:17 
GeneralRe: Text Width Pin
Giorgi Dalakishvili30-Oct-08 23:24
mentorGiorgi Dalakishvili30-Oct-08 23:24 
GeneralRe: Text Width Pin
kk.tvm31-Oct-08 2:05
kk.tvm31-Oct-08 2:05 
GeneralRe: Text Width Pin
Giorgi Dalakishvili31-Oct-08 3:30
mentorGiorgi Dalakishvili31-Oct-08 3:30 
GeneralRe: Text Width Pin
#realJSOP31-Oct-08 1:02
mve#realJSOP31-Oct-08 1:02 
GeneralRe: Text Width Pin
kk.tvm31-Oct-08 2:05
kk.tvm31-Oct-08 2:05 

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.