aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ConfigurationController.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-04-09 20:17:07 +0200
committerBond_009 <bond.009@outlook.com>2022-04-09 20:17:07 +0200
commit5012c093687c629ffdf26918ed712c8469c824eb (patch)
treeda1f3b47e5d0b0f18195370a30b081ad14345090 /Jellyfin.Api/Controllers/ConfigurationController.cs
parente4af11d53adfeeda06852a1f834b1127b475688d (diff)
Optimize GetMD5 function
| Method | Mean | Error | StdDev | Gen 0 | Allocated | |----------------------------- |---------:|--------:|--------:|-------:|----------:| | Old | 795.1 ns | 5.90 ns | 4.61 ns | 0.0029 | 312 B | | HashDataInsteadOfComputeHash | 396.1 ns | 1.36 ns | 1.13 ns | 0.0014 | 152 B | | StackallocedDestination | 395.8 ns | 1.80 ns | 1.60 ns | 0.0014 | 152 B | | RentBuffer | 498.8 ns | 3.35 ns | 2.97 ns | - | 40 B | Tested multiple possible speedups, in the end the simplest of them all won
Diffstat (limited to 'Jellyfin.Api/Controllers/ConfigurationController.cs')
0 files changed, 0 insertions, 0 deletions