Click here to Skip to main content
15,512,747 members
Home / Discussions / C#
   

C#

 
SuggestionRe: C# Performance Issue Pin
Richard Deeming18-Aug-14 3:32
mveRichard Deeming18-Aug-14 3:32 
GeneralRe: C# Performance Issue Pin
jschell18-Aug-14 12:48
jschell18-Aug-14 12:48 
AnswerRe: C# Performance Issue Pin
Bernhard Hiller17-Aug-14 21:29
Bernhard Hiller17-Aug-14 21:29 
AnswerRe: C# Performance Issue Pin
Richard MacCutchan17-Aug-14 21:41
mveRichard MacCutchan17-Aug-14 21:41 
GeneralRe: C# Performance Issue Pin
Mycroft Holmes17-Aug-14 21:59
professionalMycroft Holmes17-Aug-14 21:59 
GeneralRe: C# Performance Issue Pin
Richard MacCutchan17-Aug-14 22:34
mveRichard MacCutchan17-Aug-14 22:34 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 5:46
SledgeHammer0118-Aug-14 5:46 
AnswerRe: C# Performance Issue Pin
Rob Philpott18-Aug-14 0:45
Rob Philpott18-Aug-14 0:45 
If I understand this correctly, you are calling you method 1 million times and it takes one second. So 1 microsecond to execute. That doesn't sound like a lot to me, but without knowing what it does who knows.

At such speeds, dictionary lookups start to become quite heavy duty operations. I would think locking the dictionary would start to have a bad impact as well (I've got the time 80ns in my head, but that's probably wrong).

Remember that for each look up, the dictionary might call GetHashCode() and Equals() on multiple objects so you need to make sure that your implementations of these things are very efficient.

Bin the dictionary and switch to non-locking synchronization if possible. Also, get Reflector or something on the competitors assembly and see what's happening.
Regards,
Rob Philpott.

AnswerRe: C# Performance Issue Pin
Richard Deeming18-Aug-14 3:30
mveRichard Deeming18-Aug-14 3:30 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 5:51
SledgeHammer0118-Aug-14 5:51 
GeneralRe: C# Performance Issue Pin
Richard Deeming18-Aug-14 8:31
mveRichard Deeming18-Aug-14 8:31 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 9:31
SledgeHammer0118-Aug-14 9:31 
AnswerRe: C# Performance Issue Pin
Pete O'Hanlon18-Aug-14 4:09
mvaPete O'Hanlon18-Aug-14 4:09 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 5:52
SledgeHammer0118-Aug-14 5:52 
GeneralRe: C# Performance Issue Pin
Pete O'Hanlon18-Aug-14 5:56
mvaPete O'Hanlon18-Aug-14 5:56 
AnswerRe: C# Performance Issue Pin
jschell18-Aug-14 12:51
jschell18-Aug-14 12:51 
QuestionC#/JS problematic iteration with table... Pin
OmegaExtern16-Aug-14 18:23
OmegaExtern16-Aug-14 18:23 
AnswerRe: C#/JS problematic iteration with table... Pin
Richard MacCutchan16-Aug-14 22:11
mveRichard MacCutchan16-Aug-14 22:11 
QuestionC# Keybind for Autoclicker Pin
Aaudiio16-Aug-14 17:39
Aaudiio16-Aug-14 17:39 
AnswerRe: C# Keybind for Autoclicker Pin
Zain Ul Abidin16-Aug-14 20:49
Zain Ul Abidin16-Aug-14 20:49 
AnswerRe: C# Keybind for Autoclicker Pin
OmegaExtern16-Aug-14 21:44
OmegaExtern16-Aug-14 21:44 
GeneralRe: C# Keybind for Autoclicker Pin
Aaudiio16-Aug-14 21:47
Aaudiio16-Aug-14 21:47 
GeneralRe: C# Keybind for Autoclicker Pin
OmegaExtern16-Aug-14 21:50
OmegaExtern16-Aug-14 21:50 
Questioncheck array value exists Pin
scottichrosaviakosmos16-Aug-14 4:11
scottichrosaviakosmos16-Aug-14 4:11 
AnswerRe: check array value exists Pin
onelopez16-Aug-14 4:34
onelopez16-Aug-14 4:34 

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.