Skip to content

perf(backend): cache get_local_ips() with 60s TTL (#2791)#2929

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-2791
Mar 30, 2026
Merged

perf(backend): cache get_local_ips() with 60s TTL (#2791)#2929
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-2791

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Mar 30, 2026

Summary

  • Cache get_local_ips() result with 60s TTL using time.monotonic()
  • Avoids subprocess call (ip addr) on every invocation
  • No locking needed — GIL-safe for CPython

Closes #2791

🤖 Generated with Claude Code

Avoids subprocess call on every invocation. Uses time.monotonic()
for clock-adjustment immunity. No locking needed (GIL-safe).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

⚠️ SSOT Configuration Compliance: Violations Found

Metric Count
Total Violations 4
SSOT Violations (high priority) 3
Other Violations 1

⚠️ 3 values have SSOT config equivalents!

These should be replaced with SSOT config imports:

Python:

from src.config.ssot_config import config
# Use: config.vm.main, config.port.backend, config.backend_url

TypeScript:

import config from '@/config/ssot-config'
// Use: config.vm.main, config.port.backend, config.backendUrl

📖 See SSOT_CONFIG_GUIDE.md for documentation.

@mrveiss mrveiss merged commit c137e8b into Dev_new_gui Mar 30, 2026
3 of 5 checks passed
@mrveiss mrveiss deleted the fix/issue-2791 branch March 30, 2026 17:20
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