Skip to content

Cleanups surfaced by row decode perf work (PLP validation, cfg-gated duplication, sentinels) #258

Description

Sub-issue of #247. These surfaced while prototyping the performance work but are independent of it — none require the perf changes to land first, and each is small. Grouped into one issue because individually they are too small to track separately.

Problem statement

Six pieces of duplication and near-duplication in the row decode path. Several of them actively increased the cost or risk of the perf spikes in #247.

Proposed solution

Affected crate

mssql-tds

Alternatives considered

Doing these opportunistically inside the perf PRs. Rejected — it would inflate diffs on changes that are already wide, and make the perf review harder. They should land separately, ideally before the perf work where they reduce its cost (the trait duplication in particular).

Additional context

Also worth noting for anyone in this area: SqlTypeDecode::decode and decode_into are two complete ~40-arm type switches that must be kept in agreement by hand. #254 risks adding a third. That is called out in #254 rather than here because the resolution is a design decision for that issue, not a mechanical cleanup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions