Commit c8b3ce3
committed
⚡ Bolt: Optimize cache key generation
- Removed double serialization of headers and query params in cache key generation.
- Removed redundant manual sorting of query params (handled by json.dumps(sort_keys=True)).
- Measured ~2x performance improvement in key generation (from ~29us to ~13us per call).
- Note: This invalidates existing cache keys due to format change, which is acceptable for ephemeral cache.1 parent e267f35 commit c8b3ce3
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 60 | + | |
| 61 | + | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | | - | |
68 | | - | |
| 65 | + | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
0 commit comments