Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Turn on rbac check caching#6202

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 6 commits intomainfromstevenmasley/cache_rbac_checks
Feb 15, 2023
Merged

Conversation

Emyrk
Copy link
Member

What this does

This caches duplicate rbac checks within the same request context. Withoutauthz_experiment enabled, this cache is unlikely to get hit.

Added a benchmark to test the performance impact, which is near 0. Note in prod the worse case size will be <20.

cpu: Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHzBenchmarkCacher/Size1-8                  4239475               285.6 ns/opBenchmarkCacher/Size10-8                 2740790               377.8 ns/opBenchmarkCacher/Size100-8                 795837              1589 ns/op

@EmyrkEmyrk requested a review fromjohnstcnFebruary 14, 2023 15:50
@johnstcnjohnstcn self-assigned thisFeb 14, 2023
@johnstcn
Copy link
Member

@Emyrk need to merge latest main

Emyrk reacted with heart emoji

@EmyrkEmyrk merged commit4cbbd13 intomainFeb 15, 2023
@EmyrkEmyrk deleted the stevenmasley/cache_rbac_checks branchFebruary 15, 2023 14:56
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 15, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp