StringBuilder Internals
StringBuilders are a great way to improve the performance of many applications.. This course will teach you how to use StringBuilders effectively to improve program performance while avoiding some of the issues commonly encountered when using them.
What you'll learn
Correctly using StringBuilders can be more complex than it initially seems. In this course, StringBuilder Internals, you’ll learn to identify the correct times, and ways, to use StringBuilders as well as when not to. First, you’ll explore the most common usage patterns and what is happening behind the scenes. Next, you’ll discover different ways StringBuilders can be manipulated and how those actions can impact performance. Finally, you’ll learn how to identify the appropriate times to use, or not use, a StringBuilder and the best practices to keep in mind. When you’re finished with this course, you’ll have the skills and knowledge of StringBuilder internals needed to create more efficient applications.
Table of contents
- Version Check 0m
- Overview 1m
- Why Do We Need StringBuilders? 6m
- Demo: Performance of String vs StringBuilder 5m
- Creating and Appending Data 9m
- What's Happening Behind the Scenes? 5m
- Appending Collections of Data Using AppendJoin 3m
- Demo: Exporting CSV From a DataTable 3m
- Formatting Data Using AppendFormat 2m
- Demo: Exporting HTML From a DataTable 2m
- Summary 1m
- Overview 0m
- Modifying Properties 7m
- Modifying Function: Insert 4m
- Modifying Function: Replace 4m
- Demo: Removing Extra Newlines from a Text Field 4m
- Modifying Functions: Remove and Clear 3m
- Demo: Removing a Column from a Fixed-width Data Table 3m
- Demo: Benchmarking StringBuilder Reuse in a Loop 2m
- Summary 0m