Commit c02b687
committed
PERF: Improve speed and simplify lambda api key authorizer
This moves the table instantiation into the main body of the code
to cache it in the lambda execution environment.
Also inline the simple functions and remove the unnecessary logger.1 parent 7164d7a commit c02b687
1 file changed
Lines changed: 8 additions & 19 deletions
Lines changed: 8 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 5 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
24 | 9 | | |
25 | 10 | | |
26 | 11 | | |
| |||
31 | 16 | | |
32 | 17 | | |
33 | 18 | | |
34 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
35 | 24 | | |
36 | 25 | | |
37 | 26 | | |
| |||
0 commit comments