-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
bigtable: remove extra clones #34239
Conversation
@CriesofCarrots what can I do to make it merged? We do not need to clone |
Ohai. I assumed you changed your mind on this, since you didn't include it as a separate commit as I suggested. |
Also, looks like you'll need to rebase to pick up the audit fix |
ad8cc3d
to
1f17f4e
Compare
Updated! |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #34239 +/- ##
=========================================
- Coverage 81.8% 81.8% -0.1%
=========================================
Files 822 822
Lines 221575 221573 -2
=========================================
- Hits 181440 181342 -98
- Misses 40135 40231 +96 |
Thank you! 🚀 |
extracted from #34213
Right now we clone
AccessToken
on every request to BigTable, also we clone it when making a token refresh. InsideAccessToken
we clone Credentials struct which contains few strings and also clone 2 Arc. We can wrap everything into one Arc and significantly reduce the number of clones.