[performance] reduce InboxForward->Create calls by partially implementing Exists() (#3647)

* alphabetical reordering

* keep a cache of activity IDs we have handled creates for

* reduce number of inbox forwarding create calls by partially implementing Exists()

* increase cache size, since all we're storing is string keys
This commit is contained in:
kim 2025-01-22 12:42:12 +00:00 committed by GitHub
commit 0a99901c65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 23 deletions

View file

@ -33,7 +33,7 @@ import (
var _ interface {
pub.CommonBehavior
pub.FederatingProtocol
} = &Federator{}
} = (*Federator)(nil)
type Federator struct {
db db.DB