Skip to content

Commit 0995d08

Browse files
Update README.md
1 parent 52abcb4 commit 0995d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
</h3>
1313

14-
Collect the resulting string without allocating memory.
14+
Assembling a string with a pre-known resulting string length: uses 50% less memory then StringBuilder.
1515

1616
## Benchmark:
1717

@@ -51,4 +51,4 @@ Collect the resulting string without allocating memory.
5151
| Class.StringCreator | 500000 | 3,534,275.66 ns | 0.95 | 1000141 B | 0.50 |
5252
| | | | | | |
5353
| **StringBuilder** | **1071741** | **7,858,668.65 ns** | **1.00** | **4287176 B** | **1.00** |
54-
| Class.StringCreator | 1071741 | 7,359,583.80 ns | 0.94 | 2143628 B | 0.50 |
54+
| Class.StringCreator | 1071741 | 7,359,583.80 ns | 0.94 | 2143628 B | 0.50 |

0 commit comments

Comments
 (0)