Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
QuestionWriting Dictionary coding using C# language Pin
farshad zamani17-Jun-11 22:07
farshad zamani17-Jun-11 22:07 
AnswerRe: Writing Dictionary coding using C# language Pin
Mycroft Holmes18-Jun-11 18:10
professionalMycroft Holmes18-Jun-11 18:10 
AnswerRe: Writing Dictionary coding using C# language Pin
Dave Kreskowiak19-Jun-11 6:20
mveDave Kreskowiak19-Jun-11 6:20 
GeneralRe: Writing Dictionary coding using C# language Pin
Eddy Vluggen19-Jun-11 6:40
professionalEddy Vluggen19-Jun-11 6:40 
GeneralRe: Writing Dictionary coding using C# language Pin
Dave Kreskowiak20-Jun-11 2:44
mveDave Kreskowiak20-Jun-11 2:44 
GeneralRe: Writing Dictionary coding using C# language Pin
Eddy Vluggen20-Jun-11 2:51
professionalEddy Vluggen20-Jun-11 2:51 
GeneralRe: Writing Dictionary coding using C# language Pin
Dave Kreskowiak20-Jun-11 7:39
mveDave Kreskowiak20-Jun-11 7:39 
QuestionVisual Studio 2010 Profiler Pin
Matt U.17-Jun-11 11:25
Matt U.17-Jun-11 11:25 
Do any of you use the VS2010 Profiler regularly? If so, in what cases do you use it? I know there are plenty of paid profilers around, as well as free (IIRC, not entirely sure).

I ask because I recently ran into some terribly slow performance in a database-driven application. I did not have access to any 3rd-party profiling applications. So I ran the profiler in VS. It helped me discover that I had mistakenly created a loop which opened the database connection, queried it and the closed the connection for EACH iteration in the loop. This took approximately 27 seconds seeing as how there was close to 2,000 records in the table. The profiler told me that the majority of the time was taken up by DbConnection.Disconnect() inside this method. That's when I found the problem. Once I fixed it I can now run the same code with MORE THAN 2,000 records in the table and it takes ~7 seconds.

I think I should start using the profiler more often. Haha. Any input would be nice. I wasn't entirely sure if this was the correct forum but I develop C# applications.
AnswerRe: Visual Studio 2010 Profiler Pin
Pete O'Hanlon17-Jun-11 11:33
mvePete O'Hanlon17-Jun-11 11:33 
GeneralRe: Visual Studio 2010 Profiler Pin
Matt U.17-Jun-11 11:39
Matt U.17-Jun-11 11:39 
GeneralRe: Visual Studio 2010 Profiler Pin
jschell17-Jun-11 11:59
jschell17-Jun-11 11:59 
GeneralRe: Visual Studio 2010 Profiler Pin
Mycroft Holmes18-Jun-11 18:15
professionalMycroft Holmes18-Jun-11 18:15 
GeneralRe: Visual Studio 2010 Profiler Pin
Matt U.20-Jun-11 12:39
Matt U.20-Jun-11 12:39 
GeneralRe: Visual Studio 2010 Profiler Pin
Mycroft Holmes20-Jun-11 12:48
professionalMycroft Holmes20-Jun-11 12:48 
AnswerRe: Visual Studio 2010 Profiler Pin
jschell17-Jun-11 11:59
jschell17-Jun-11 11:59 
QuestionShamless repost - related to delegates [modified] Pin
dan!sh 17-Jun-11 9:57
professional dan!sh 17-Jun-11 9:57 
AnswerRe: Shamless repost - related to delegates Pin
Pete O'Hanlon17-Jun-11 10:11
mvePete O'Hanlon17-Jun-11 10:11 
GeneralRe: Shamless repost - related to delegates Pin
Mark Salsbery17-Jun-11 10:23
Mark Salsbery17-Jun-11 10:23 
GeneralRe: Shamless repost - related to delegates Pin
Pete O'Hanlon17-Jun-11 10:28
mvePete O'Hanlon17-Jun-11 10:28 
GeneralRe: Shamless repost - related to delegates Pin
dan!sh 17-Jun-11 10:29
professional dan!sh 17-Jun-11 10:29 
GeneralRe: Shamless repost - related to delegates Pin
Pete O'Hanlon17-Jun-11 10:32
mvePete O'Hanlon17-Jun-11 10:32 
GeneralRe: Shamless repost - related to delegates Pin
dan!sh 17-Jun-11 10:43
professional dan!sh 17-Jun-11 10:43 
JokeRe: Shamless repost - related to delegates Pin
Richard MacCutchan17-Jun-11 22:55
mveRichard MacCutchan17-Jun-11 22:55 
GeneralRe: Shamless repost - related to delegates Pin
dan!sh 17-Jun-11 10:57
professional dan!sh 17-Jun-11 10:57 
GeneralRe: Shamless repost - related to delegates Pin
Pete O'Hanlon17-Jun-11 11:00
mvePete O'Hanlon17-Jun-11 11:00 

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.