undef-engine 2026-03-20
Guard debug f-string calls and close memray optimization loop
71 files · 3,297+ · 2,242-

Guard debug f-string calls in hot paths

20 files changed
  • registry.py Added is_debug_enabled() guard to debug calls
  • config.py Added is_debug_enabled() guard to debug calls
  • registry.py Added is_debug_enabled() guard to debug calls
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • plugin.py Added is_debug_enabled() guard
  • screens.py Added is_debug_enabled() guard
  • alarm.py Added is_debug_enabled() guard
  • Wrapped debug() log calls with is_debug_enabled() checks across all game plugins and engine modules to prevent f-string evaluation overhead when debug logging is inactive streamline behavioral
    6 files
    • registry.py
    • config.py
    • registry.py
    • plugin.py
    • plugin.py
    • plugin.py
  • A cheap but impactful micro-optimization in hot paths where debug calls were evaluated unconditionally streamline internal
    1 file
    • alarm.py

Memray optimization documentation and performance infrastructure

10 files changed
  • ci.yml CI pipeline updates for performance tests
  • .gitignore Added performance artifact ignores
  • Makefile Added performance targets
  • pyproject.toml Updated project configuration
  • memray_action_cycle_stress.py Action cycle stress test updates
  • memray_analysis.py Analysis script updates
  • run_performance_smoke.py Performance smoke test updates
  • CLI_REFERENCE.md Updated CLI reference
  • RoomList.tsx Room list updates
  • game.ts Type definition updates
  • Final memray profiling report confirming all app-level memory hotspots have been addressed across 5 optimization iterations specify internal
  • Updated performance documentation, HANDOFF, and CLI reference with complete optimization session results specify internal
    1 file
    • CLI_REFERENCE.md