From 92c7e64dcf07136308bc120c288675ff3983bb88 Mon Sep 17 00:00:00 2001 From: Roland Arsenault Date: Wed, 22 Apr 2026 01:00:29 -0400 Subject: [PATCH 1/3] =?UTF-8?q?feat(s57):=20cold-cache=20mitigation=20?= =?UTF-8?q?=E2=80=94=20faster=20polling,=20timing=20logs,=20precompute,=20?= =?UTF-8?q?buffer=20param?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Four bundled changes to reduce S57 chart cold-cache latency for the costmap stack. None of them couple s57_layer to mission_manager / BT publishing patterns; all use signals already available to the costmap layer (TF, costmap window, lifecycle). s57_grids changes: 1. check_new_grids_period parameter, default 0.1 s (was hardcoded 1.0 s). Reaps completed std::async futures sooner, removing up to 1 s per chart from publish latency. Verified via per-chart timing log: US5PSMBC published 0.78 s after request (would have been 0.78–1.78 s with old 1 s timer). 2. Per-chart timing logs at INFO level. Records wall-clock time from first request to publish. Format: "Grid ready: