Skip to content

Commit

Permalink
Updated CHANGES.md with PR reference
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Dec 3, 2021
1 parent e67e90f commit 1542526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Changes to release v2.7.x
a) After implementing a **zero allocation `ValueStringBuilder`** based on [ZString](https://github.com/Cysharp/ZString) with [#193](https://github.com/axuno/SmartFormat/pull/193) and [#228](https://github.com/axuno/SmartFormat/pull/228):
* Parsing is 10% faster with 50-80% less GC and memory allocation
* Formatting is up to 40% faster with 50% less GC and memory allocation
b) After implementing **Object Pools** for all classes which are frequently instantiated, GC and memory allocation again went down significantly. See the test results below.
b) After implementing **Object Pools** ([#229](https://github.com/axuno/SmartFormat/pull/229)) for all classes which are frequently instantiated, GC and memory allocation again went down significantly. See the test results below.

See also: <a href="#ThreadSafety">thread safety</a> and <a href="#ObjectPooling">object pooling</a>

Expand Down Expand Up @@ -295,7 +295,7 @@ SmartFormat is not a fully-fledged HTML parser. If this is required, use [AngleS
// result: "25 heures 1 minute"
```
<a id="ThreadSafety"></a>
### 20. Thread Safety
### 20. Thread Safety ([#229](https://github.com/axuno/SmartFormat/pull/229))
SmartFormat makes heavy use of caching and object pooling for expensive operations, which both require `static` containers.

Expand All @@ -312,7 +312,7 @@ a) Instantiating `SmartFormatter`s from a single thread:
The simplified `Smart.Format(...)` API overloads are allowed here.

<a id="ObjectPooling"></a>
### 21. How to benefit from object pooling
### 21. How to benefit from object pooling ([#229](https://github.com/axuno/SmartFormat/pull/229))
In order to return "smart" objects back to the object pool, its important to use one of the following patterns.

Expand Down
2 changes: 1 addition & 1 deletion src/SmartFormat.Tests/SmartFormat.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<DefineConstants>RELEASE</DefineConstants>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' != 'netcoreapp3.1'">
<ItemGroup>
<ProjectReference Include="..\SmartFormat.ZString\SmartFormat.ZString.csproj" />
<ProjectReference Include="..\SmartFormat\SmartFormat.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 1542526

Please sign in to comment.