GoToSocial/vendor/codeberg.org/gruf
kim 7ec1e1332e
[performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535)
* rewrite cache library as codeberg.org/gruf/go-structr, implement in gotosocial

* use actual go-structr release version (not just commit hash)

* revert go toolchain changes (damn you go for auto changing this)

* fix go mod woes

* ensure %w is used in calls to errs.Appendf()

* fix error checking

* fix possible panic

* remove unnecessary start/stop functions, move to main Cache{} struct, add note regarding which caches require start/stop

* fix copy-paste artifact... 😇

* fix all comment copy-paste artifacts

* remove dropID() function, now we can just use slices.DeleteFunc()

* use util.Deduplicate() instead of collate(), move collate to util

* move orderByIDs() to util package and "generify"

* add a util.DeleteIf() function, use this to delete entries on failed population

* use slices.DeleteFunc() instead of util.DeleteIf() (i had the logic mixed up in my head somehow lol)

* add note about how collate differs from deduplicate
2024-01-19 12:57:29 +00:00
..
go-atomics [chore] consolidate caching libraries (#704) 2022-07-10 17:18:21 +02:00
go-bitutil [performance] processing media and scheduled jobs improvements (#1482) 2023-02-13 18:40:48 +00:00
go-bytes update dependencies (#296) 2021-11-13 12:29:08 +01:00
go-bytesize [chore]: Bump codeberg.org/gruf/go-bytesize from 1.0.0 to 1.0.2 (#1285) 2022-12-27 08:28:44 +00:00
go-byteutil [chore]: Bump codeberg.org/gruf/go-byteutil from 1.1.2 to 1.2.0 (#2389) 2023-11-27 13:16:26 +00:00
go-cache/v3 [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
go-debug [performance] processing media and scheduled jobs improvements (#1482) 2023-02-13 18:40:48 +00:00
go-errors/v2 [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
go-fastcopy [performance] media processing improvements (#1288) 2023-01-11 12:13:13 +01:00
go-fastpath/v2 [feature] add per-uri dereferencer locks (#2291) 2023-10-31 11:12:22 +00:00
go-iotools [feature] add per-uri dereferencer locks (#2291) 2023-10-31 11:12:22 +00:00
go-kv [chore]: Bump codeberg.org/gruf/go-kv from 1.6.3 to 1.6.4 (#2142) 2023-08-21 06:54:30 +00:00
go-logger/v2 [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
go-mangler pull in latest go-kv, go-cache (#1530) 2023-02-19 10:36:38 +01:00
go-maps [feature] Read + Write tombstones for deleted Actors (#1005) 2022-11-11 12:18:38 +01:00
go-mutexes [chore]: Bump codeberg.org/gruf/go-mutexes from 1.3.0 to 1.3.1 (#2387) 2023-11-27 13:20:18 +00:00
go-runners [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
go-sched [performance] processing media and scheduled jobs improvements (#1482) 2023-02-13 18:40:48 +00:00
go-store/v2 [feature] add per-uri dereferencer locks (#2291) 2023-10-31 11:12:22 +00:00
go-structr [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00