stash/pkg
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
..
api Add option to disable create from dropdown (#1814) 2021-10-11 17:45:58 +11:00
autotag Autotag scraper (#1817) 2021-10-11 23:06:06 +11:00
database Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
dlna refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
ffmpeg refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
gallery Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
image Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
job Refactor clean task (#1805) 2021-10-11 16:45:24 +11:00
logger Enable safe linters (#1786) 2021-10-03 11:48:03 +11:00
manager Add option to disable create from dropdown (#1814) 2021-10-11 17:45:58 +11:00
match Autotag scraper (#1817) 2021-10-11 23:06:06 +11:00
models Refactor clean task (#1805) 2021-10-11 16:45:24 +11:00
movie Enable safe linters (#1786) 2021-10-03 11:48:03 +11:00
performer Enable safe linters (#1786) 2021-10-03 11:48:03 +11:00
plugin Enable safe linters (#1786) 2021-10-03 11:48:03 +11:00
scene Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
scraper Autotag scraper (#1817) 2021-10-11 23:06:06 +11:00
session Fix setting config locking out proxy users (#1820) 2021-10-10 10:54:15 +11:00
sqlite Autotag scraper (#1817) 2021-10-11 23:06:06 +11:00
static Replace packr with go embed (#1751) 2021-09-22 13:08:34 +10:00
studio Enable safe linters (#1786) 2021-10-03 11:48:03 +11:00
tag Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
utils Improve oshash code (#1829) 2021-10-12 11:59:51 +11:00