Harshavardhana
0bc34952eb
fix: under FanOut API avoid repeated md5sum calculation (#17572)
md5sum calculation has a high CPU overhead, avoid calculating
it repeatedly for similar fanOut calls.
To fix following CPU profiler result
```
(pprof) top10
Showing nodes accounting for 678.68s, 84.67% of 801.54s total
Dropped 1072 nodes (cum <= 4.01s)
Showing top 10 nodes out of 156
flat flat% sum% cum cum%
332.54s 41.49% 41.49% 332.54s 41.49% runtime/internal/syscall.Syscall6
228.39s 28.49% 69.98% 228.39s 28.49% crypto/md5.block
48.07s 6.00% 75.98% 48.07s 6.00% runtime.memmove
28.91s 3.61% 79.59% 28.91s 3.61% github.com/minio/highwayhash.updateAVX2
8.25s 1.03% 80.61% 8.25s 1.03% runtime.futex
8.25s 1.03% 81.64% 10.81s 1.35% runtime.step
6.99s 0.87% 82.52% 22.35s 2.79% runtime.pcvalue
6.67s 0.83% 83.35% 38.90s 4.85% runtime.mallocgc
5.77s 0.72% 84.07% 32.61s 4.07% runtime.gentraceback
4.84s 0.6% 84.67% 10.49s 1.31% runtime.lock2
```
2023-07-05 03:16:05 -07:00
..
2023-06-14 07:49:13 -07:00
2022-01-02 09:15:06 -08:00
2023-05-17 17:05:36 -07:00
2022-01-02 09:15:06 -08:00
2023-06-28 22:12:28 -07:00
2022-12-13 08:27:40 -08:00
2023-07-03 12:28:36 -07:00
2023-05-25 09:39:06 -07:00
2022-11-05 11:09:21 -07:00
2023-06-17 07:31:36 -07:00
2023-05-13 08:42:21 -07:00
2022-09-19 11:05:16 -07:00
2023-06-20 17:38:59 -07:00
2022-12-30 11:37:07 -08:00
2023-04-06 22:42:10 -07:00
2023-07-05 03:16:05 -07:00
2023-07-03 12:30:51 -07:00
2022-11-04 16:44:38 -07:00
2023-05-05 19:53:12 -07:00
2023-05-09 00:53:08 -07:00
2023-03-16 11:59:42 -07:00
2022-09-19 11:05:16 -07:00
2023-06-23 07:45:27 -07:00
2023-03-04 20:57:35 -08:00
2022-12-06 09:27:26 -08:00
2022-09-19 11:05:16 -07:00
2023-05-08 21:20:31 -07:00
2022-10-28 10:55:42 -07:00
2023-06-08 08:39:47 -07:00
2023-05-30 10:02:22 -07:00
2023-06-07 11:47:00 -07:00