I have some code which I am currently optimizing for concurrency in multicore architectures. In one of my classes, I found a nested foreach
loop. Basically the
The answer will be, it depends;
Threads are not cheap, they take time to create, and memory to exist. If you're not doing something computationally expensive with those IP Addresses, and using the wrong type of collection for concurrent access, you're almost certainly slowing down your application.
Use StopWatch to help you answer these questions.