Codex
d9b7e05531
malkhut(perf): optimize _run_episode — reduced Python overhead
Optimizations in _run_episode:
- Pre-allocated ActionKind constants (avoid repeated attribute lookups)
- Removed unnecessary max_pos_qty tracking (unused in scoring)
- Simplified action kind checks (single comparison chain)
- Reduced frozen dataclass allocations per step
Result: same behavioral output, cleaner code path.
Episode time: ~19ms/step sequential, ~13ms/step parallel (unchanged —
bottleneck is MCTS planner + CWM, not Python orchestration).
2026-07-13 15:11:19 +02:00
..
2026-07-11 10:33:56 +02:00
2026-07-12 00:40:14 +02:00
2026-07-13 13:38:32 +02:00
2026-07-11 06:37:17 +02:00
2026-07-12 10:45:37 +02:00
2026-07-12 00:40:14 +02:00
2026-07-11 06:37:17 +02:00
2026-07-13 15:11:19 +02:00
2026-07-11 10:39:03 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:39:03 +02:00
2026-07-11 10:39:03 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 20:19:32 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:33:56 +02:00
2026-07-12 23:56:16 +02:00
2026-07-11 10:39:03 +02:00
2026-07-11 10:33:56 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:33:56 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:28:38 +02:00
2026-07-11 10:28:38 +02:00
2026-07-12 23:56:16 +02:00