Skip to content

Remove dead stream-reader spikes (Channel, Pipeline, PipelineNew)#632

Merged
Hirogen merged 1 commit into
Developmentfrom
remove-dead-streamreaders
Jun 22, 2026
Merged

Remove dead stream-reader spikes (Channel, Pipeline, PipelineNew)#632
Hirogen merged 1 commit into
Developmentfrom
remove-dead-streamreaders

Conversation

@Hirogen

@Hirogen Hirogen commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

These three readers were performance spikes attempting to beat .NET's buffered StreamReader. They were never wired into the ReaderType enum or the factory, so the factory could only ever produce Legacy, System, or SystemDirect. Channel and PipelineNew were referenced nowhere; Pipeline lived only in a doc comment and one test.

The spikes' payoff was the finding that stream I/O is not the read-path bottleneck (buffer creation and line-location are) — already captured in PositionAwareStreamReaderDirect. The code artifacts are spent.

  • Delete Channel/Pipeline/PipelineNew (~2,186 lines)
  • Remove the 7 Pipeline* tests (seeking/unicode/max-length/empty-line behaviour is already covered by the System and Direct tests)
  • Update ILogStreamReader doc comment to list the three real readers and drop the NotSupportedException reference to the removed Pipeline reader

The three-reader seam is kept deliberately: it varies across a speed-vs-format-robustness axis.

These three readers were performance spikes attempting to beat .NET's
buffered StreamReader. They were never wired into the ReaderType enum or
the factory, so the factory could only ever produce Legacy, System, or
SystemDirect. Channel and PipelineNew were referenced nowhere; Pipeline
lived only in a doc comment and one test.

The spikes' payoff was the finding that stream I/O is not the read-path
bottleneck (buffer creation and line-location are) — already captured in
PositionAwareStreamReaderDirect. The code artifacts are spent.

- Delete Channel/Pipeline/PipelineNew (~2,186 lines)
- Remove the 7 Pipeline* tests (seeking/unicode/max-length/empty-line
  behaviour is already covered by the System and Direct tests)
- Update ILogStreamReader doc comment to list the three real readers and
  drop the NotSupportedException reference to the removed Pipeline reader

The three-reader seam is kept deliberately: it varies across a
speed-vs-format-robustness axis (see ADR 0006).
@Hirogen Hirogen merged commit d054670 into Development Jun 22, 2026
2 of 3 checks passed
@Hirogen Hirogen deleted the remove-dead-streamreaders branch June 22, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant