Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wazzamatazz authored Jul 18, 2024
1 parent 7ed06d7 commit b45146b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
<PackageVersion Include="System.Net.Http.Json" Version="8.0.0" />
<PackageVersion Include="System.Net.Http.WinHttpHandler" Version="8.0.0" />
<PackageVersion Include="System.Text.Json" Version="8.0.3" />
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
<PackageVersion Include="System.Threading.Channels" Version="8.0.0" />
<PackageVersion Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/release-notes/v5.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This release includes the following changes and features:

## String Caching

The new `StringCache` class is now used to cache feequently-used string instances instead of using `string.Intern` directly. `StringCache` uses a `ConcurrentDictionary<string, string>` to cache string instances; benchmarks show that this usually gives superior performance compared to `string.Intern`. `StringCache` can be configured to use `string.Intern` instead of its own cache by setting the `DataCore.Adapter.StringCache.UseNativeIntern` flag on `AppContext` to `false`.
The new `StringCache` class is now used to cache frequently-used string instances instead of using `string.Intern` directly. `StringCache` uses a `ConcurrentDictionary<string, string>` to cache string instances; benchmarks show that this usually gives superior performance compared to `string.Intern`. `StringCache` can be configured to use `string.Intern` instead of its own cache by setting the `DataCore.Adapter.StringCache.UseNativeIntern` flag on `AppContext` to `false`.

Additionally, new `string` extension methods have been added in the `System` namespace to allow strings to be interned easily using `StringCache`:

Expand Down

0 comments on commit b45146b

Please sign in to comment.