Click here to Skip to main content
   

C#

 
GeneralRe: C# Performance Issue Pinmemberjschell18-Aug-14 12:48 
AnswerRe: C# Performance Issue PinprofessionalBernhard Hiller17-Aug-14 21:29 
AnswerRe: C# Performance Issue PinprotectorRichard MacCutchan17-Aug-14 21:41 
GeneralRe: C# Performance Issue PinprofessionalMycroft Holmes17-Aug-14 21:59 
GeneralRe: C# Performance Issue PinprotectorRichard MacCutchan17-Aug-14 22:34 
GeneralRe: C# Performance Issue PinmemberSledgeHammer0118-Aug-14 5:46 
AnswerRe: C# Performance Issue PinprofessionalRob Philpott18-Aug-14 0:45 
AnswerRe: C# Performance Issue PinprofessionalRichard Deeming18-Aug-14 3:30 
SledgeHammer01 wrote:
Then I lock a dictionary and do a TryGetValue.

That might be related to the problem - locking is a notoriously slow operation. You might want to look at using the ConcurrentDictionary class[^] instead.

However, you'll need to profile your code to find out where the bottleneck is. Making random changes in the hopes of improving the performance is never a good idea. Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: C# Performance Issue PinmemberSledgeHammer0118-Aug-14 5:51 
GeneralRe: C# Performance Issue PinprofessionalRichard Deeming18-Aug-14 8:31 
GeneralRe: C# Performance Issue PinmemberSledgeHammer0118-Aug-14 9:31 
AnswerRe: C# Performance Issue PinprotectorPete O'Hanlon18-Aug-14 4:09 
GeneralRe: C# Performance Issue PinmemberSledgeHammer0118-Aug-14 5:52 
GeneralRe: C# Performance Issue PinprotectorPete O'Hanlon18-Aug-14 5:56 
AnswerRe: C# Performance Issue Pinmemberjschell18-Aug-14 12:51 
QuestionC#/JS problematic iteration with table... PinmemberOmegaExtern16-Aug-14 18:23 
AnswerRe: C#/JS problematic iteration with table... PinprotectorRichard MacCutchan16-Aug-14 22:11 
QuestionC# Keybind for Autoclicker PinmemberMember 1101699616-Aug-14 17:39 
AnswerRe: C# Keybind for Autoclicker PinmemberZain Ul Abidin16-Aug-14 20:49 
AnswerRe: C# Keybind for Autoclicker [modified] PinmemberOmegaExtern16-Aug-14 21:44 
GeneralRe: C# Keybind for Autoclicker PinmemberMember 1101699616-Aug-14 21:47 
GeneralRe: C# Keybind for Autoclicker PinmemberOmegaExtern16-Aug-14 21:50 
Questioncheck array value exists Pinmemberscottichrosaviakosmos16-Aug-14 4:11 
AnswerRe: check array value exists Pinmemberjlopez78816-Aug-14 4:34 
GeneralRe: check array value exists Pinmemberscottichrosaviakosmos16-Aug-14 5:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 19 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid