Files
stash/pkg/utils
SmallCoccinelle 38384f2c60 Improve oshash code (#1829)
Reduce allocations. Don't create intermediary arrays which we then
consume right after. Manually fuse the arrays and decode straight into
the sum instead.

Furthermore, don't invoke a Reader, but carve out the locations via a
loop, directly.

These two changes taken together speeds up oshash computations by a
factor of 10 according to the benchmark tests. The main reason for
this change is a much lowered memory allocation rate which in turn
improves GC pressure.

While here, add a benchmark for oshash computations and use it for
testing the performance.
2021-10-12 11:59:51 +11:00
..
2021-09-23 17:15:50 +10:00
2021-09-09 14:10:08 +10:00
2021-06-11 17:24:58 +10:00
2021-09-21 09:34:25 +10:00
2019-03-09 10:14:55 -08:00
2019-04-11 10:55:58 -07:00
2021-10-12 11:59:51 +11:00
2021-06-23 09:10:20 +10:00
2021-04-22 13:51:51 +10:00
2021-05-25 11:25:26 +10:00
2021-05-25 11:25:26 +10:00
2019-02-14 15:42:52 -08:00