Skip to content

Use unbuffered chan in parallel func for processesing the data - #162

Open
oshankkumar wants to merge 1 commit into
disintegration:masterfrom
oshankkumar:use_unbuf_chan
Open

Use unbuffered chan in parallel func for processesing the data#162
oshankkumar wants to merge 1 commit into
disintegration:masterfrom
oshankkumar:use_unbuf_chan

Conversation

@oshankkumar

Copy link
Copy Markdown

Channels should usually have a size of one or be unbuffered. It prevents the channel from filling up under load.
Refer https://github.com/uber-go/guide/blob/master/style.md#channel-size-is-one-or-none for more details.

Channels should usually have a size of one or be unbuffered. It
prevents the channel from filling up under load.
Refer https://github.com/uber-go/guide/blob/master/style.md#channel-size-is-one-or-none
for more details.

Signed-off-by: Oshank Kumar <oshankfriends@gmail.com>
dabao1955 pushed a commit to NekoSekaiMoe/imaging that referenced this pull request Jul 26, 2026
…ation

- fix: prevent panic on invalid paletted image indices (PR disintegration#180)
- refactor: replace deprecated io/ioutil with io and os packages (PR disintegration#175)
- perf: use unbuffered channel in parallel processing (PR disintegration#162)
- fix: update example import path to NekoSekaiMoe

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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