• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zappa / Zappa / 23101030110

15 Mar 2026 01:53AM UTC coverage: 73.842% (-0.2%) from 74.02%
23101030110

push

github

web-flow
:zap: Optimize handler hot-path performance (#1443)

- Reorder event routing: HTTP v2/v1 checked first instead of last
- Replace inspect.getfullargspec with try/except TypeError fallback
- Cache ApacheNCSA formatters as module-level constants
- Use time.perf_counter() instead of datetime.now() for timing
- Cache text mimetypes tuple on instance during __init__
- Eliminate double merge_headers call in v1 HTTP path
- Build minimal ASGI log environ with only required keys
- Use _LogResponse namedtuple instead of mutating werkzeug Response
- Title-case headers in payload processors to avoid extra dict copy
- Lazy-import boto3 in _get_boto_session (cold-start only)

Co-authored-by: shane <shane.cousins@kiconiaworks.com>

3571 of 4836 relevant lines covered (73.84%)

4.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.37
/handler.py


Source Not Available

The file "handler.py" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc