Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sync.Pool for Relation slices. #60

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

ronenh
Copy link
Contributor

@ronenh ronenh commented Dec 6, 2024

No description provided.

@gertd gertd merged commit 3a4bb96 into cache-inverted-model Dec 6, 2024
1 check passed
@gertd gertd deleted the mempool branch December 6, 2024 20:18
gertd added a commit that referenced this pull request Dec 11, 2024
* cache inverted model on first use

* write message when inverted model is cached

* Use sync.Pool for Relation slices. (#60)

* up go.sum

* Memory pool for slices and messages

* Add memory pool for timestamppb.Timestamp

* Use vtproto mempool for Relation

* relpool change + RelationId refectoring (#62)

* convert azm to use RelationIdentifier

* update go-directory & grpc deps

* Fix: Checker.checkRelation wasn't setting the subject ID

As a result it was getting way more relations back.

* update deps

* Toggle between shared or per-call memory pool.

* Replace Cache RWMutex with an atomic pointer.

* Initialize SlicePool with given capacity

* upd [email protected]

---------

Co-authored-by: Ronen Hilewicz <[email protected]>

---------

Co-authored-by: Ronen Hilewicz <[email protected]>
Co-authored-by: Ronen Hilewicz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants