Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 10:47
mvePete O'Hanlon3-May-10 10:47 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:05
sitebuilderLuc Pattyn3-May-10 11:05 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 11:16
mvePete O'Hanlon3-May-10 11:16 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:26
sitebuilderLuc Pattyn3-May-10 11:26 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 11:23
mvePete O'Hanlon3-May-10 11:23 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:27
sitebuilderLuc Pattyn3-May-10 11:27 
GeneralRe: i wait so much because of loops Pin
karayel_kara4-May-10 3:52
karayel_kara4-May-10 3:52 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn4-May-10 4:18
sitebuilderLuc Pattyn4-May-10 4:18 
karayel_kara wrote:
my code isn't run


is not informative. does it compile? if not, what is the first error? does it run? if not, what is the first exception, with all the details? and at what line is it pointing?

anyway, your code looks all wrong. You now have three arrays. Why? You don't initialize the arrays. I see six for loops, you only need three. And the way I understand the algorithm you can not possibly run the outer loop in parallel (that was the essence of my comment to Pete too).

And please, please, please, please, please, please, show code in PRE tags, not in CODE tags.

Final remark: when all you do to the algorithm is run it in parallel, the best you can hope for is to get it N times faster, with N the number of cores, say 4. That is something, but not much. And there are no guarantees. My first experiment did run 5 times slower, because it trashed the caches all the time! (and I'm afraid that will be true for your app too).

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


QuestionMissing special symbols Pin
Sebastian T Xavier3-May-10 1:29
Sebastian T Xavier3-May-10 1:29 
AnswerRe: Missing special symbols PinPopular
Alan N3-May-10 2:24
Alan N3-May-10 2:24 
QuestionRemove items from the list box in C# windows application Pin
yadlaprasad3-May-10 0:31
yadlaprasad3-May-10 0:31 
AnswerRe: Remove items from the list box in C# windows application Pin
Abhinav S3-May-10 0:49
Abhinav S3-May-10 0:49 
AnswerRe: Remove items from the list box in C# windows application Pin
nagendrathecoder3-May-10 0:52
nagendrathecoder3-May-10 0:52 
AnswerRe: Remove items from the list box in C# windows application Pin
Abdul Rahman Hamidy3-May-10 0:53
Abdul Rahman Hamidy3-May-10 0:53 
AnswerRe: Remove items from the list box in C# windows application Pin
Henry Minute3-May-10 3:32
Henry Minute3-May-10 3:32 
AnswerRe: Remove items from the list box in C# windows application Pin
PIEBALDconsult3-May-10 4:44
mvePIEBALDconsult3-May-10 4:44 
QuestionHtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 0:10
mve#realJSOP3-May-10 0:10 
AnswerRe: HtmlAgilityPack Weirdness Pin
Ravi Bhavnani3-May-10 2:42
professionalRavi Bhavnani3-May-10 2:42 
AnswerRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 2:47
sitebuilderLuc Pattyn3-May-10 2:47 
AnswerRe: HtmlAgilityPack Weirdness Pin
Pete O'Hanlon3-May-10 2:50
mvePete O'Hanlon3-May-10 2:50 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 5:54
mve#realJSOP3-May-10 5:54 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 6:09
sitebuilderLuc Pattyn3-May-10 6:09 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 6:46
mve#realJSOP3-May-10 6:46 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 6:57
sitebuilderLuc Pattyn3-May-10 6:57 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 13:47
mve#realJSOP3-May-10 13:47 

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.