Skip to content

Commit 6c10eb9

Browse files
authored
Update README.md
1 parent 3ca3790 commit 6c10eb9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Third Party Benchmarks
5656
* [Default Type Convert](#default-type-convert---writer)
5757
* [Custom Property Convert](#custom-property-convert---writer)
5858

59-
*ㅤyou can use a "string pool" to avoid creating multiple instances of strings with same content. This optimization is useful when there are a lot of repeated string values present. In this scenario, it may reduce allocated memory and speed-up processing time.
59+
*ㅤyou can use a "string pool" (function that converts a `ReadOnlySpan<char>` to `string`) to avoid creating multiple instances of strings with same content. This optimization is useful when there are a lot of repeated string values present. In this scenario, it may reduce allocated memory and speed-up processing time.
6060

6161
### Parsing Files
6262
1. [Readers](#file-processing---read)
@@ -566,6 +566,9 @@ public record class Record(int Foo, string Bar, decimal Qux);
566566

567567
### File reading for VariableLength Raw
568568

569+
Note: only recommended when user need to receive each field as `string`.
570+
Other methods that does not force `string` uses `ReadOnlySpan<char>`, which speed up processing and reduces unnecessary allocations.
571+
569572
```csharp
570573
using System;
571574
using RecordParser.Extensions;

0 commit comments

Comments
 (0)