Click here to Skip to main content
16,012,107 members

Comments by Beachhouse13 (Top 2 by date)

Beachhouse13 18-Jul-17 13:15pm View    
I don't know which is the best item to work on, but I can go ahead and work on the best 3, 4, or however many the CPU can handle at once. It may lead to a situation where an item is evaluated when it wouldn't have if I had gone sequentially, but that would be rare and the speedup from running in parallel would be more beneficial.
Beachhouse13 14-Jul-17 22:48pm View    
Richard, Thank you for your reply, but that will not work for me. I have to apologize as my original post was not that clear on my intent. I have added more description to help with that. Essentially, I do not want to work on every item in the list, which is why the sorting is important. With that I cannot use the ConcrurrentQueue will not work as I cannot insert items into it. I realize that the List class is slow and that is next on my list to make more efficient, but for now that is the best I can do. I plan on being able to use the list as I only access it on the main thread and not in any of the worker threads.

Also, thank you for pointing out the error in the code. That has been fixed.