"Cool Bear Technology" work accumulated-----------unity3d/c language Use Stringbuilder reference header file using System.Text

Source: Internet
Author: User

Using StringBuilder

UNITY3D/C language uses Stringbuilder reference header file using System.Text

Describe the difference between StringBuilder and string?

strings are string constants. StringBuffer is a string variable, thread safe.  StringBuilder is a string variable and thread is unsafe. The string type is an immutable object that needs to generate a new string object each time a string is changed, and then point the pointer to a new object, and if you constantly change an object within a loop, you will constantly generate new objects, so it is inefficient It is recommended that you do not use string types where you constantly change the string object. The StringBuilder object is modified on the original string while doing a string join operation, improving performance. This is a point we usually use to know that when the connection operation is frequent, use the StringBuilder object.

"Cool Bear Technology" work accumulated-----------unity3d/c language Use Stringbuilder reference header file using System.Text

Related Article

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.