Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: how i can use Kinect to record skeleton tracking Pin
Dave Kreskowiak20-Jul-16 8:14
mveDave Kreskowiak20-Jul-16 8:14 
QuestionInconsistent synchronization Pin
Bernhard Hiller19-Jul-16 22:29
Bernhard Hiller19-Jul-16 22:29 
AnswerRe: Inconsistent synchronization Pin
User 1106097919-Jul-16 23:31
User 1106097919-Jul-16 23:31 
GeneralRe: Inconsistent synchronization Pin
Bernhard Hiller19-Jul-16 23:59
Bernhard Hiller19-Jul-16 23:59 
GeneralRe: Inconsistent synchronization Pin
User 1106097920-Jul-16 0:02
User 1106097920-Jul-16 0:02 
GeneralRe: Inconsistent synchronization Pin
Bernhard Hiller20-Jul-16 0:18
Bernhard Hiller20-Jul-16 0:18 
GeneralRe: Inconsistent synchronization Pin
User 1106097920-Jul-16 0:25
User 1106097920-Jul-16 0:25 
GeneralRe: Inconsistent synchronization Pin
User 1106097920-Jul-16 9:22
User 1106097920-Jul-16 9:22 
AnswerRe: Inconsistent synchronization Pin
Pete O'Hanlon20-Jul-16 0:38
mvePete O'Hanlon20-Jul-16 0:38 
QuestionRe: Inconsistent synchronization Pin
User 1106097926-Jul-16 19:59
User 1106097926-Jul-16 19:59 
AnswerRe: Inconsistent synchronization Pin
Bernhard Hiller26-Jul-16 21:32
Bernhard Hiller26-Jul-16 21:32 
GeneralRe: Inconsistent synchronization Pin
User 1106097926-Jul-16 21:42
User 1106097926-Jul-16 21:42 
GeneralRe: Inconsistent synchronization Pin
Bernhard Hiller26-Jul-16 21:53
Bernhard Hiller26-Jul-16 21:53 
PraiseRe: Inconsistent synchronization Pin
User 1106097926-Jul-16 22:17
User 1106097926-Jul-16 22:17 
QuestionFingerprint reader SDK C # MVC + Pin
MCanizalez19-Jul-16 14:04
professionalMCanizalez19-Jul-16 14:04 
AnswerRe: Fingerprint reader SDK C # MVC + Pin
Dave Kreskowiak19-Jul-16 15:30
mveDave Kreskowiak19-Jul-16 15:30 
QuestionHow can I speed up my code? Pin
turbosupramk319-Jul-16 4:18
turbosupramk319-Jul-16 4:18 
AnswerRe: How can I speed up my code? Pin
Marc Clifton19-Jul-16 6:39
mvaMarc Clifton19-Jul-16 6:39 
AnswerRe: How can I speed up my code? Pin
Dave Kreskowiak19-Jul-16 9:26
mveDave Kreskowiak19-Jul-16 9:26 
GeneralRe: How can I speed up my code? Pin
turbosupramk319-Jul-16 9:36
turbosupramk319-Jul-16 9:36 
GeneralRe: How can I speed up my code? Pin
Dave Kreskowiak19-Jul-16 10:26
mveDave Kreskowiak19-Jul-16 10:26 
GeneralRe: How can I speed up my code? Pin
turbosupramk319-Jul-16 10:35
turbosupramk319-Jul-16 10:35 
GeneralRe: How can I speed up my code? Pin
Dave Kreskowiak19-Jul-16 12:57
mveDave Kreskowiak19-Jul-16 12:57 
That's better.

If you are making a request to the domain controller for every group at every level, you're going through an expensive operation, every single time. Just because you're code hits one domain controller for one request does not mean that the same domain controller is going to service all subsequent requests. You could be throwing requests all over the network without knowing it.

Now, each request is expensive so it would be better to make them once and then cache the result. Create a Dictionary to cache the objects returned. When you make a request for a group, lookup the group name in the cache to see if it's there first. If not, go to the directory to get it and cache it for use next time around. Whenever you go get a list of groups, add them to the cache if needed.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: How can I speed up my code? Pin
turbosupramk320-Jul-16 4:13
turbosupramk320-Jul-16 4:13 
GeneralRe: How can I speed up my code? Pin
Dave Kreskowiak20-Jul-16 5:17
mveDave Kreskowiak20-Jul-16 5:17 

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.