String pool technology

Source: Internet
Author: User
When compiling Source code. Our compiler must process every text constant string and put it into the metadata. If the same string appears multiple times and is put into the metadata, the generated file will expand sharply.

To solve this problem, many compilers (including C # compilers) write such strings only once in the metadata of the generated module. ThenCodeChanged to a string in the reference metadata. This ability to combine a string that appears multiple times into an instance can greatly reduce the size of the generation module. In fact, the C/C ++ compiler has been in use for many years.

Refer to the. NET FrameworkProgramDesign (revision)

PS: I hope it will be helpful to my questions about msolap yesterday.

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.