Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
GeneralRe: What is the proper Domain Model for this relationship? Pin
Togakangaroo7-Aug-08 2:31
Togakangaroo7-Aug-08 2:31 
Question[Message Deleted] Pin
csharp-job6-Aug-08 14:48
csharp-job6-Aug-08 14:48 
AnswerRe: Any good C# programmers around Norwalk, CT - Full time position Pin
Mogaambo7-Aug-08 0:07
Mogaambo7-Aug-08 0:07 
AnswerRe: Any good C# programmers around Norwalk, CT - Full time position Pin
Thomas Stockwell7-Aug-08 1:33
professionalThomas Stockwell7-Aug-08 1:33 
QuestionCrystal Reports - easy advice needed Pin
nelsonpaixao6-Aug-08 14:30
nelsonpaixao6-Aug-08 14:30 
QuestionInline MSIL in C#? Pin
dybs6-Aug-08 12:40
dybs6-Aug-08 12:40 
AnswerRe: Inline MSIL in C#? Pin
Guffa6-Aug-08 14:48
Guffa6-Aug-08 14:48 
GeneralRe: Inline MSIL in C#? Pin
dybs6-Aug-08 15:44
dybs6-Aug-08 15:44 
The DLL is part of the PowerCollections, and when we ran our code through a profiler ((ANTS Profiler from Red Gate)[^], the most time our code spent by far was in the Set.UnionWith() function (defined in the PowerCollections DLL). Since we have the source code for the DLL, we profiled that as well, and ultimately most of the time was being spent in checking if a particular bucket in the Set was empty or not (for handling collision). These 2 functions are essentially those I described in my original post. The problem really is that we call UnionWith() so many times in this particular feature of our code. We've limited the number of calls about as must as we can, we just have so much data that the customer needs us to analyze. I'd prefer not to get into too many more details since this is for work.

Regarding assemblies, I've done some reading on them but I still don't really understand how to use them, (i.e. put a method in an assembly). We actually wrote the same 2 functions in C++ and C#, with the same compiler optimization settings and compared the IL, and the C++ IL already had the changes we wanted to make to the C# IL, so we're assuming (is that a bad thing? Poke tongue | ;-P ) the C++ and C# compilers just produce different IL for the essentially the same code.

Is there a chance we're misinterpreting what the profiler is telling us about our bottleneck? Again, we've tried reducing the number of calls as much as we can (it's essentially a dynamic programming problem, and we've managed to cache our results as much as memory allows - depending on our data set, our final results may take up around 5 GB.) I realize I haven't posted any code yet, but I'd appreciate any suggestions you may have on optimizing this, if inlining the IL isn't the right approach.

Thanks,
Dybs
GeneralRe: Inline MSIL in C#? Pin
Mark Churchill6-Aug-08 21:33
Mark Churchill6-Aug-08 21:33 
GeneralRe: Inline MSIL in C#? Pin
leppie7-Aug-08 3:13
leppie7-Aug-08 3:13 
GeneralRe: Inline MSIL in C#? Pin
dybs7-Aug-08 6:53
dybs7-Aug-08 6:53 
QuestionWebApp or WinApp? Pin
k6666-Aug-08 10:42
k6666-Aug-08 10:42 
AnswerRe: WebApp or WinApp? Pin
Ravi Bhavnani6-Aug-08 12:14
professionalRavi Bhavnani6-Aug-08 12:14 
GeneralRe: WebApp or WinApp? Pin
k6667-Aug-08 3:28
k6667-Aug-08 3:28 
AnswerRe: WebApp or WinApp? Pin
Manas Bhardwaj7-Aug-08 5:19
professionalManas Bhardwaj7-Aug-08 5:19 
GeneralRe: WebApp or WinApp? Pin
k6667-Aug-08 6:06
k6667-Aug-08 6:06 
GeneralRe: WebApp or WinApp? Pin
Manas Bhardwaj7-Aug-08 7:43
professionalManas Bhardwaj7-Aug-08 7:43 
GeneralRe: WebApp or WinApp? Pin
k6667-Aug-08 7:49
k6667-Aug-08 7:49 
GeneralRe: WebApp or WinApp? Pin
Manas Bhardwaj7-Aug-08 8:02
professionalManas Bhardwaj7-Aug-08 8:02 
GeneralRe: WebApp or WinApp? Pin
k6667-Aug-08 11:25
k6667-Aug-08 11:25 
QuestionAuto refresh and timeout Pin
CezW6-Aug-08 9:39
CezW6-Aug-08 9:39 
AnswerRe: Auto refresh and timeout Pin
leppie6-Aug-08 10:07
leppie6-Aug-08 10:07 
AnswerRe: Auto refresh and timeout Pin
Guffa6-Aug-08 12:26
Guffa6-Aug-08 12:26 
QuestionMessage Removed Pin
6-Aug-08 9:32
tkrn6-Aug-08 9:32 
GeneralRe: SQL Datatype WinForm Textbox Validation? Pin
nelsonpaixao6-Aug-08 14:05
nelsonpaixao6-Aug-08 14:05 

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.