[PR #7575] Optimize GetMD5 function #11457

Closed
opened 2026-02-07 06:38:50 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/7575

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/7575 **State:** closed **Merged:** Yes --- | 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
OVERLORD added the pull-request label 2026-02-07 06:38:50 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11457