Skip to content

refactor: use strings.SplitSeq for streaming iteration - #516

Merged
tenthirtyam merged 1 commit into
mainfrom
refactor/use-strings-splitseq-for-streaming-iteration
Jun 23, 2026
Merged

refactor: use strings.SplitSeq for streaming iteration#516
tenthirtyam merged 1 commit into
mainfrom
refactor/use-strings-splitseq-for-streaming-iteration

Conversation

@tenthirtyam

Copy link
Copy Markdown
Collaborator

Summary

Replaces strings.Split with strings.SplitSeq in to iterate over split results without allocating an intermediate slice.

This reduces memory allocations and enables streaming-style processing.

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Output:

Documentation

  • Documentation has been added or updated.

Issue References

Release Note

Additional Information

Replaces `strings.Split` with `strings.SplitSeq` in to iterate over split results without allocating an intermediate slice.

This reduces memory allocations and enables streaming-style processing.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam tenthirtyam added this to the v2.1.4 milestone Jun 23, 2026
@tenthirtyam tenthirtyam self-assigned this Jun 23, 2026
@tenthirtyam
tenthirtyam requested a review from a team as a code owner June 23, 2026 15:37
@tenthirtyam tenthirtyam added the refactor Refactor label Jun 23, 2026
@github-actions github-actions Bot added needs-review Needs Review size/xs Relative Sizing: Extra-Small labels Jun 23, 2026
@tenthirtyam tenthirtyam removed the needs-review Needs Review label Jun 23, 2026
@tenthirtyam
tenthirtyam merged commit 454d339 into main Jun 23, 2026
8 checks passed
@tenthirtyam
tenthirtyam deleted the refactor/use-strings-splitseq-for-streaming-iteration branch June 23, 2026 15:40
@github-actions

Copy link
Copy Markdown

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

refactor Refactor size/xs Relative Sizing: Extra-Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant