Dual-core sin and serialization

Source: Internet
Author: User
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 ~~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.