Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
QuestionSecuGen SDK Pin
Member 1069240122-Aug-14 3:13
Member 1069240122-Aug-14 3:13 
SuggestionRe: SecuGen SDK Pin
Richard MacCutchan22-Aug-14 3:18
mveRichard MacCutchan22-Aug-14 3:18 
GeneralRe: SecuGen SDK Pin
Member 1069240122-Aug-14 3:55
Member 1069240122-Aug-14 3:55 
GeneralRe: SecuGen SDK Pin
Richard MacCutchan22-Aug-14 6:40
mveRichard MacCutchan22-Aug-14 6:40 
GeneralRe: SecuGen SDK Pin
Member 1069240122-Aug-14 11:37
Member 1069240122-Aug-14 11:37 
AnswerRe: SecuGen SDK Pin
Ravi Bhavnani22-Aug-14 12:20
professionalRavi Bhavnani22-Aug-14 12:20 
GeneralRe: SecuGen SDK Pin
Member 1069240123-Aug-14 1:30
Member 1069240123-Aug-14 1:30 
GeneralRe: SecuGen SDK Pin
Member 1069240123-Aug-14 1:51
Member 1069240123-Aug-14 1:51 
AnswerRe: SecuGen SDK Pin
Ravi Bhavnani23-Aug-14 17:17
professionalRavi Bhavnani23-Aug-14 17:17 
GeneralRe: SecuGen SDK Pin
Member 1069240125-Aug-14 1:53
Member 1069240125-Aug-14 1:53 
Questioncode for how to check if a file is encrypted in c# Pin
bandayashoda22-Aug-14 3:11
bandayashoda22-Aug-14 3:11 
AnswerRe: code for how to check if a file is encrypted in c# Pin
Richard MacCutchan22-Aug-14 3:17
mveRichard MacCutchan22-Aug-14 3:17 
QuestionWPF / EF & 'Audit' field updates Pin
cjb11022-Aug-14 2:40
cjb11022-Aug-14 2:40 
AnswerRe: WPF / EF & 'Audit' field updates Pin
Eddy Vluggen22-Aug-14 5:08
professionalEddy Vluggen22-Aug-14 5:08 
GeneralRe: WPF / EF & 'Audit' field updates Pin
cjb11022-Aug-14 5:27
cjb11022-Aug-14 5:27 
GeneralRe: WPF / EF & 'Audit' field updates Pin
Eddy Vluggen22-Aug-14 6:47
professionalEddy Vluggen22-Aug-14 6:47 
QuestionPlaying With Mouse Events Pin
Django_Untaken22-Aug-14 2:09
Django_Untaken22-Aug-14 2:09 
QuestionRe: Playing With Mouse Events Pin
Richard MacCutchan22-Aug-14 3:15
mveRichard MacCutchan22-Aug-14 3:15 
QuestionCreate & Download file runtime in MVC Pin
nitin_ion22-Aug-14 1:21
nitin_ion22-Aug-14 1:21 
AnswerRe: Create & Download file runtime in MVC Pin
Nathan Minier22-Aug-14 4:42
professionalNathan Minier22-Aug-14 4:42 
QuestionVS2010 crashes When Designer View Opens Pin
AmbiguousName21-Aug-14 20:43
AmbiguousName21-Aug-14 20:43 
AnswerRe: VS2010 crashes When Designer View Opens Pin
Bernhard Hiller21-Aug-14 21:27
Bernhard Hiller21-Aug-14 21:27 
GeneralRe: VS2010 crashes When Designer View Opens Pin
AmbiguousName21-Aug-14 22:24
AmbiguousName21-Aug-14 22:24 
GeneralRe: VS2010 crashes When Designer View Opens Pin
Rob Philpott22-Aug-14 0:05
Rob Philpott22-Aug-14 0:05 
QuestionDictionary<K,V> performance based on Key Type Pin
SledgeHammer0121-Aug-14 18:29
SledgeHammer0121-Aug-14 18:29 
So I did some performance testing on Dictionary<K,V> based on different key types (1M iterations):

1) int, string = 10ms
2) Type, string = 20ms
3) string, string = 40ms
4) Tuple<Type, string>, string = 120ms!!!
5) struct, string = 590ms!!!

Right now I'm using #2 in a performance critical loop... but I really need something like #4, but the performance overhead is just not acceptable.

Anybody got any ideas for a multi-key dictionary that isn't going to kill my performance?

My only idea so far is to get kinda hacky and go with #3 and append to string & Type.ToString() together. I.e. "Bob;System.Int32".

I'd really like to avoid hackyness though as this is actually code I care about lol Smile | :) .

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.