Dual-core sin
Zgallop's birthday. When he ran, he found that he was studying the change in CPU usage to a sine curve in the beauty of programming.Code. However, the original code can only be implemented in a single core. After a slight change, the dual core can also run (AlgorithmIt's not as simple as you think. You can try it :-)
Serialization
Today, I saw the serialization of C ~~
Now the object can be directly exchanged with files on the hard disk (more specifically, an object can be easily converted into a stream or vice versa). The most important thing is that, unit test is much more convenient than before. During the project, due to the close connection between modules, the input of the modules to be debugged is usually the output of other modules, which makes debugging inconvenient: on the one hand, debugging code often cannot be added to an independent test project but must be mixed with the work code. On the other hand, in many cases, the intermediate results can only be obtained after a long time, this makes every debugging very painful. Fortunately, with serialization, we can get the intermediate result and store it in the hard disk. Then we can create a debugging project and directly load the result in the hard disk as the input.
Debugging is much better than before ~~