- Notifications
You must be signed in to change notification settings - Fork95
Commit1695119
feat: add caching to GapicCallable (#666)
* feat: optimize _GapicCallable* cleaned up metadata lines* chore: avoid type checks in error wrapper* Revert "chore: avoid type checks in error wrapper"This reverts commitc97a636.* add default wrapped function* fixed decorator order* fixed spacing* fixed comment typo* fixed spacing* fixed spacing* removed unneeded helpers* use caching* improved metadata parsing* improved docstring* fixed logic* added benchmark test* update threshold* run benchmark in loop for testing* use verbose logs* Revert testing* used smaller value* changed threshold* removed link in comment* use list type for metadata* add types to docstring* fixed lint* convert to list at init time---------Co-authored-by: Daniel Sanche <sanche@google.com>Co-authored-by: Daniel Sanche <d.sanche14@gmail.com>1 parent3c69867 commit1695119
File tree
2 files changed
+57
-44
lines changed- google/api_core/gapic_v1
- tests/unit/gapic
2 files changed
+57
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 45 | | |
64 | 46 | | |
65 | 47 | | |
| |||
91 | 73 | | |
92 | 74 | | |
93 | 75 | | |
| 76 | + | |
| 77 | + | |
94 | 78 | | |
95 | 79 | | |
96 | | - | |
| 80 | + | |
97 | 81 | | |
98 | 82 | | |
99 | 83 | | |
100 | 84 | | |
101 | 85 | | |
102 | 86 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 87 | | |
110 | 88 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 89 | + | |
| 90 | + | |
117 | 91 | | |
118 | 92 | | |
119 | 93 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
130 | 121 | | |
131 | | - | |
| 122 | + | |
132 | 123 | | |
133 | 124 | | |
134 | 125 | | |
| |||
202 | 193 | | |
203 | 194 | | |
204 | 195 | | |
205 | | - | |
206 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
207 | 199 | | |
208 | 200 | | |
209 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
0 commit comments
Comments
(0)