GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — fix(aws-lambda): Load path-style handlers once instead of on every invocation by pabloDeputter · Pull Request #8134 · getsentry/sentry-python Conversation
Contributor
DescriptionPath-style handlers, e.g. Changes & ResultsLoader now does the same as Lambda runtime itself: Some results below on a Lambda function (python3.13, arm64, 512 MB) that creates 3 boto3 clients at import:
Warm invocations: p50 122ms => 58ms; p99 180ms => 69ms.
Cold starts remain the same, 1.4s for both.
Peak memory also drops from 117 MB => 108 MB and is fixed on invocations, unlike the old layer which grows over time because each call creates new clients. IssuesResolves #8079 & PY-3016
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
pabloDeputter
force-pushed
the
pablo/aws-lambda-load-handler-once
branch
from
ca3a347 to
fac06dc
Compare
pabloDeputter
marked this pull request as ready for review
|
There was an error while loading. Please reload this page.
Coverage Results 📊✅ 138998 passed | ⏭️ 7669 skipped | Total: 146667 | Pass Rate: 94.77% | Execution Time: 458m 55s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00% (no changed executable lines found; target 80%). Coverage diff@@ Coverage Diff @@ ## master #8134 +/-## ========================================== - Coverage 90.25% 90.24% -0.01% ========================================== Files 203 203 — Tracked lines 27114 27114 — Branches 10136 10136 — ========================================== - Hits 24470 24468 -2 - Misses 2644 2646 +2 - Partials 1538 1540 +2 Generated by Coverage Action |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
fix(aws-lambda): Load handler module only once in the layer
There was an error while loading. Please reload this page.