jellyfin/Emby.Server.Implementations/Library
Bond_009 a9b497720d Use JsonSerializer.SerializeToUtf8Bytes when doing a round trip
This test uses a very small object (CountryInfo), using a bigger object
would increase the difference in allocated memory.

```
BenchmarkDotNet=v0.12.1, OS=fedora 32
Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=5.0.100
  [Host]     : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT
  DefaultJob : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT

|          Method |       Mean |    Error |   StdDev |  Gen 0 | Gen 1 | Gen 2 | Allocated |
|---------------- |-----------:|---------:|---------:|-------:|------:|------:|----------:|
|  RoundTripBytes |   932.0 ns |  5.09 ns |  4.25 ns | 0.1173 |     - |     - |     368 B |
| RoundTripString | 1,114.8 ns | 22.19 ns | 23.74 ns | 0.1469 |     - |     - |     464 B |
```
2021-01-12 15:37:18 +01:00
..
Resolvers Merge pull request #4906 from Spacetech/library_scan_ignore_inaccessible 2021-01-08 21:01:32 +01:00
Validators Use nameof where possible 2020-10-17 16:19:57 +02:00
CoreResolutionIgnoreRule.cs Fix warnings 2020-07-20 11:01:37 +02:00
ExclusiveLiveStream.cs Fix warnings 2020-07-20 11:01:37 +02:00
IgnorePatterns.cs . 2020-07-26 23:28:25 +02:00
LibraryManager.cs Simplify 2020-12-10 14:47:47 +01:00
LiveStreamHelper.cs Put json serializer options in private field 2020-12-24 11:22:34 +01:00
MediaSourceManager.cs Use JsonSerializer.SerializeToUtf8Bytes when doing a round trip 2021-01-12 15:37:18 +01:00
MediaStreamSelector.cs Fixes spelling. 2020-11-18 13:23:45 +00:00
MusicManager.cs Use nameof where possible 2020-10-17 16:19:57 +02:00
PathExtensions.cs Address comments 2020-04-21 10:18:26 +02:00
ResolverHelper.cs Add full stop at end of comments (SA1629) 2020-06-16 10:37:52 +12:00
SearchEngine.cs Fix limit parameter error for search hints endpoint 2020-12-30 11:16:09 +01:00
UserDataManager.cs Update Emby.Server.Implementations/Library/UserDataManager.cs 2020-12-30 09:30:02 -05:00
UserViewManager.cs Use a more descriptive function name 2020-12-13 08:15:26 -07:00