Click here to Skip to main content
15,906,455 members
Home / Discussions / C#
   

C#

 
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 
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 
Honestly, I think the root of the problem is just the amount of data we have - (some constant)^n, depending on the range of values the user specifies in the data set. We would need to consider all possible combinations of values for up to 10 items, and each item can range between 0 and 25. Right now we're focusing on just 5 items, all possible combinations, which already gives us nearly 10 million combinations. Ideally, I'd rather just reduce the data set, but that's not really an option at the moment.

dybs wrote:
we profiled that (the Collections DLL) 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).

As for how the Set is implemented, the problem with UnionWith() is the number of times it performs the above operations.

So for each of these combinations, we call UnionWith() for each item. So with 5 items, each ranging 0-25, we potentially call UnionWith 48 million times. As mentioned above, we've reduced the number of calls significantly by caching our results as we are able to, so we only call UnionWith() for the items that have changed since the last combination we tried. We're not sure how much simpler we can make it. I'd gladly take any suggestions. Not looking for anyone to do the work for me, just general ideas on this.

Thanks,
Dybs
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 
GeneralRe: SQL Datatype WinForm Textbox Validation? Pin
tkrn7-Aug-08 2:09
tkrn7-Aug-08 2:09 
QuestionMulticast Delegates Event Driven Architecture is there a way? Pin
danielgmx6-Aug-08 6:55
danielgmx6-Aug-08 6:55 
QuestionRe: Multicast Delegates Event Driven Architecture is there a way? Pin
led mike6-Aug-08 7:21
led mike6-Aug-08 7:21 

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.