Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon16-Jul-14 2:22
mvePete O'Hanlon16-Jul-14 2:22 
QuestionShowDialog doesn't make form modal Pin
Don Guy15-Jul-14 4:34
Don Guy15-Jul-14 4:34 
AnswerRe: ShowDialog doesn't make form modal Pin
Eddy Vluggen15-Jul-14 5:28
professionalEddy Vluggen15-Jul-14 5:28 
QuestionTo create reports Pin
stokkee15-Jul-14 2:19
stokkee15-Jul-14 2:19 
AnswerRe: To create reports Pin
Simon_Whale15-Jul-14 3:22
Simon_Whale15-Jul-14 3:22 
AnswerRe: To create reports Pin
deenn22-Jul-14 2:26
deenn22-Jul-14 2:26 
Questionreading magnetic card stripe Pin
Jassim Rahma15-Jul-14 1:22
Jassim Rahma15-Jul-14 1:22 
AnswerRe: reading magnetic card stripe Pin
OriginalGriff15-Jul-14 1:31
mveOriginalGriff15-Jul-14 1:31 
GeneralRe: reading magnetic card stripe Pin
Jassim Rahma15-Jul-14 1:35
Jassim Rahma15-Jul-14 1:35 
GeneralRe: reading magnetic card stripe Pin
OriginalGriff15-Jul-14 1:38
mveOriginalGriff15-Jul-14 1:38 
GeneralRe: reading magnetic card stripe Pin
Jassim Rahma15-Jul-14 1:39
Jassim Rahma15-Jul-14 1:39 
GeneralRe: reading magnetic card stripe Pin
Pete O'Hanlon15-Jul-14 1:49
mvePete O'Hanlon15-Jul-14 1:49 
AnswerRe: reading magnetic card stripe Pin
Gerry Schmitz15-Jul-14 9:18
mveGerry Schmitz15-Jul-14 9:18 
QuestionC# , Websocket -HTTPS Pin
sgeorge10615-Jul-14 0:49
sgeorge10615-Jul-14 0:49 
AnswerRe: C# , Websocket -HTTPS Pin
Pete O'Hanlon15-Jul-14 1:45
mvePete O'Hanlon15-Jul-14 1:45 
GeneralRe: C# , Websocket -HTTPS Pin
sgeorge10615-Jul-14 8:27
sgeorge10615-Jul-14 8:27 
QuestionIntegrating with Intelligent Networks Using MML in C# Pin
tnashc14-Jul-14 23:00
tnashc14-Jul-14 23:00 
SuggestionRe: Integrating with Intelligent Networks Using MML in C# Pin
Richard MacCutchan14-Jul-14 23:41
mveRichard MacCutchan14-Jul-14 23:41 
QuestionRefactoring versus Performance Pin
Agent__00714-Jul-14 19:42
professionalAgent__00714-Jul-14 19:42 
I have been asked to refactor a couple of modules which are extremely critical with respect to the performance and are already taking a few seconds more than the desired time. So, they later will be worked on performance optimizations as well.

I have come across following block of code:
// some method declarations and statements here 

foreach // <-- iterating about 30 times
  // some loop declarations
  foreach // <-- iterating about 150 times
     // some loop declarations
     foreach // <-- iterating about 500 times
         // some loop declarations
         // some statements -> good candidates for 
         //             refactoring as method-calls within current DLL as well as external one   (##)
     end
   end
end         

// some method-statements here


I was thinking to refactor the statements ((##) above). But as per my knowledge, method calls do take finite amount of execution time for push/pop onto/from the stack. Considering these modules are really critical w.r.t. the performance (as in any other relevant scenario):

0. Should I really be considering function-call times while dealing with performance?
1. Should I really go ahead with refactoring the above statements (especially for those which involve significant number of push/pop operations)?
1.1. If yes, should I refactor those statements to methods only in current DLL or the external one is also feasible?

Any pointers will be appreciated. Thanks!
Whether I think I can, or think I can't, I am always bloody right!

AnswerRe: Refactoring versus Performance Pin
Bernhard Hiller14-Jul-14 20:36
Bernhard Hiller14-Jul-14 20:36 
GeneralRe: Refactoring versus Performance Pin
Agent__00714-Jul-14 20:55
professionalAgent__00714-Jul-14 20:55 
AnswerRe: Refactoring versus Performance Pin
Kornfeld Eliyahu Peter14-Jul-14 21:35
professionalKornfeld Eliyahu Peter14-Jul-14 21:35 
GeneralRe: Refactoring versus Performance Pin
Agent__00714-Jul-14 21:49
professionalAgent__00714-Jul-14 21:49 
GeneralRe: Refactoring versus Performance Pin
OriginalGriff14-Jul-14 21:49
mveOriginalGriff14-Jul-14 21:49 
AnswerRe: Refactoring versus Performance Pin
OriginalGriff14-Jul-14 21:03
mveOriginalGriff14-Jul-14 21:03 

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.