GoToSocial/internal/typeutils
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
..
astointernal.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
astointernal_test.go [bugfix/chore] `Announce` reliability updates (#2405) 2023-12-01 15:27:15 +01:00
converter.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
converter_test.go [bugfix] Add Actor to outgoing poll vote Create; other fixes (#2384) 2023-11-27 13:14:28 +00:00
defaulticons.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
frontendtointernal.go [feature] Implement markers API (#1989) 2023-07-29 12:49:14 +02:00
internal.go [bugfix/chore] `Announce` reliability updates (#2405) 2023-12-01 15:27:15 +01:00
internaltoas.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
internaltoas_test.go [bugfix/chore] `Announce` reliability updates (#2405) 2023-12-01 15:27:15 +01:00
internaltofrontend.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
internaltofrontend_test.go [feature] Account alias / move API + db models (#2518) 2024-01-16 16:22:44 +00:00
internaltorss.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
internaltorss_test.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
util.go [bugfix] Outdent placeholder from `<aside>` when returning unknown media attachments (#2485) 2024-01-09 10:41:32 +01:00
util_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
wrap.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
wrap_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00