Parallel development and learning 1-parallel plinq and parallel development
I have been reading articles from yuanyou these two days.
8-day interactive parallel development-Use of plinq on the third day
I practiced the first instance and found something interesting.
Test environment:. net 4.5 64-bit (if it is 32-bit, the error of out of memory will pop up when testing 10 million data)
Test results of tens of millions of data on my machine:
Testing results of millions of data:
100,000 data test results:
It can be seen that whether to use serial or parallel depends on the amount of data, and the performance of the two is basically close to that of the hundreds of thousands of data. Of course, this result is not fixed. It should be related to the configuration of the machine and the system environment during testing. It should be tested before being determined in actual use.
In addition, I think that when using a project, you should create a class library for external unification, and determine which type of operations should be used internally based on the data volume.