From ddf887d95c1cef95746f9881dc4180d983e7a351 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 5 Nov 2025 17:53:47 +0100 Subject: [performance] when transforming media, perform read operations of large files using mmap (#4541) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the performance gains aren't as substantial as i was hoping, but benchmarks did show it averaged out faster using this method. unfortunately i managed to lose the benchmarks i wrote with a poorly timed `git checkout -- .` 😭 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4541 Co-authored-by: kim Co-committed-by: kim --- go.mod | 1 + 1 file changed, 1 insertion(+) (limited to 'go.mod') diff --git a/go.mod b/go.mod index e2450dcd4..6d013df4a 100644 --- a/go.mod +++ b/go.mod @@ -23,6 +23,7 @@ require ( codeberg.org/gruf/go-kv/v2 v2.0.7 codeberg.org/gruf/go-list v0.0.0-20240425093752-494db03d641f codeberg.org/gruf/go-mempool v0.0.0-20251003110531-b54adae66253 + codeberg.org/gruf/go-mmap v0.0.0-20251105140602-5f31e9314dbf codeberg.org/gruf/go-mutexes v1.5.8 codeberg.org/gruf/go-runners v1.7.0 codeberg.org/gruf/go-sched v1.3.0 -- cgit v1.3