Skip to content

Improve performance and reduce request latency#1174

Open
seanmercier777 wants to merge 1 commit intochubin:masterfrom
seanmercier777:minty/perf_fork
Open

Improve performance and reduce request latency#1174
seanmercier777 wants to merge 1 commit intochubin:masterfrom
seanmercier777:minty/perf_fork

Conversation

@seanmercier777
Copy link
Copy Markdown

  • Add 5-second timeouts to all HTTP requests in location.py to prevent hanging on slow/unresponsive external services
  • Use requests.Session() for connection pooling, reducing TCP overhead
  • Add timeout to Go HTTP client in nominatim.go for geocoding requests
  • Remove debug print() statement in cache.py that caused blocking I/O on every request
  • Replace unmaintained pyjq with maintained jq package (same API)

These changes address latency issues where requests could take 15-20 seconds due to external API calls without timeouts blocking indefinitely.

🤖 Generated with Claude Code

- Add 5-second timeouts to all HTTP requests in location.py to prevent
  hanging on slow/unresponsive external services
- Use requests.Session() for connection pooling, reducing TCP overhead
- Add timeout to Go HTTP client in nominatim.go for geocoding requests
- Remove debug print() statement in cache.py that caused blocking I/O
  on every request
- Replace unmaintained pyjq with maintained jq package (same API)

These changes address latency issues where requests could take 15-20
seconds due to external API calls without timeouts blocking indefinitely.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant