Skip to content

refactor: replace Split in loops with more efficient SplitSeq#474

Merged
qzhodl merged 3 commits intoethstorage:mainfrom
fengyuchuanshen:main
Feb 27, 2026
Merged

refactor: replace Split in loops with more efficient SplitSeq#474
qzhodl merged 3 commits intoethstorage:mainfrom
fengyuchuanshen:main

Conversation

@fengyuchuanshen
Copy link
Contributor

strings.SplitSeq (introduced in Go 1.23) returns a lazy sequence (strings.Seq), allowing gopher to iterate over tokens one by one without creating an intermediate slice.

More info: golang/go#61901

fengyuchuanshen and others added 2 commits November 4, 2025 23:08
@qzhodl qzhodl merged commit 43f0014 into ethstorage:main Feb 27, 2026
2 checks passed
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.

4 participants