You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Outline the warning-string formatter currently inlined in every JSON conversion visitor (JsonToIntegerVisitor<T>, JsonToBoolVisitor, JsonToFloatVisitor<T>, JsonToStringVisitor). Each visitor today embeds a call to fl::to_string(value, 6) or fl::to_string(static_cast<i64>(mValue)) inside its warning emission path; this anchors basic_string formatter machinery even in builds where the warnings never fire at runtime.
Reproduction (baseline)
bash bloat lpc845brk --example AutoResearch --top 30
# Visitor operator() bodies emit ~120-250 B each due to inlined fl::to_string formatters.
Acceptance
PR introduces a single non-template fl::detail::format_warning_value(json_tag, const void* storage) helper that returns the warning string.
All four visitor families call the helper instead of inlining fl::to_string(...).
Measured savings on LPC845-BRK / AutoResearch: ≥ 500 B net flash drop. Audit predicted ~1-2 KB across all visitors.
"Each visitor today inlines a fl::to_string(value, 6) warning formatter that anchors basic_string machinery. Outline to a single format_warning_value(tag, storage) helper that only links if any visitor actually emits a warning at runtime."
The savings compound with Tier 2E Phase 2 (which moves the visitor bodies to a non-template core anyway).
Risk
Warning strings are stable parts of the TypeConversionResult contract; format must match the existing wording so RPC dispatch error logs don't change shape.
Activity
refactor(rpc): delete unused JsonTo*Visitor classes (#3251 / #3244 Ti…