mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 13:52:25 -05:00
- github.com/ncruces/go-sqlite3 - codeberg.org/gruf/go-mempool - codeberg.org/gruf/go-structr (changes related on the above) * - codeberg.org/gruf/go-mutexes (changes related on the above) * * this is largely just fiddling around with package internals in structr and mutexes to rely on changes in mempool, which added a new concurrency-safe pool Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4468 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com> |
||
|---|---|---|
| .. | ||
| cache.go | ||
| index.go | ||
| item.go | ||
| key.go | ||
| LICENSE | ||
| list.go | ||
| map.go | ||
| queue.go | ||
| queue_ctx.go | ||
| README.md | ||
| runtime.go | ||
| timeline.go | ||
go-structr
A library with a series of performant data types with automated struct value indexing. Indexing is supported via arbitrary combinations of fields, and in the case of the cache type, negative results (errors!) are also supported.
Under the hood, go-structr maintains a hashmap per index, where each hashmap is keyed by serialized input key. This is handled by the incredibly performant serialization library go-mangler/v2, which at this point in time supports all concrete types, so feel free to index by by almost anything!
See the docs for more API information.
Notes
This is a core underpinning of GoToSocial's performance.