summaryrefslogtreecommitdiff
path: root/internal/config/defaults.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-04-15 14:22:21 +0100
committerLibravatar GitHub <noreply@github.com>2024-04-15 14:22:21 +0100
commitf79d50b9b26590b6d2468aeb41f0846272e08d1a (patch)
tree196b9bfaf8ad6fce782c2130633cfb5c97cbd31a /internal/config/defaults.go
parent[chore] Turn `accounts-registration-open` false by default (#2839) (diff)
downloadgotosocial-f79d50b9b26590b6d2468aeb41f0846272e08d1a.tar.xz
[performance] cached oauth database types (#2838)
* update token + client code to use struct caches * add code comments * slight tweak to default mem ratios * fix envparsing * add appropriate invalidate hooks * update the tokenstore sweeping function to rely on caches * update to use PutClient() * add ClientID to list of token struct indices
Diffstat (limited to 'internal/config/defaults.go')
-rw-r--r--internal/config/defaults.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/config/defaults.go b/internal/config/defaults.go
index 64fff366a..f5f8fb6ac 100644
--- a/internal/config/defaults.go
+++ b/internal/config/defaults.go
@@ -163,6 +163,7 @@ var Defaults = Configuration{
BlockMemRatio: 2,
BlockIDsMemRatio: 3,
BoostOfIDsMemRatio: 3,
+ ClientMemRatio: 0.1,
EmojiMemRatio: 3,
EmojiCategoryMemRatio: 0.1,
FilterMemRatio: 0.5,
@@ -190,6 +191,7 @@ var Defaults = Configuration{
StatusFaveIDsMemRatio: 3,
TagMemRatio: 2,
ThreadMuteMemRatio: 0.2,
+ TokenMemRatio: 0.75,
TombstoneMemRatio: 0.5,
UserMemRatio: 0.25,
WebfingerMemRatio: 0.1,