Skip to content

add Result.task as a useful optimisation#32

Open
bishabosha wants to merge 1 commit intomainfrom
opt-tasks
Open

add Result.task as a useful optimisation#32
bishabosha wants to merge 1 commit intomainfrom
opt-tasks

Conversation

@bishabosha
Copy link
Member

if you have an algorithm where mostly you do some side effecting thing such as push to a builder and consume from a mutable stream, then mostly its the happy path of Unit and occasional failure. Model that usecase for optimal bytecode and reduced allocation

@bishabosha bishabosha requested a review from natsukagami March 25, 2026 13:08
Copy link
Contributor

@natsukagami natsukagami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good

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.

2 participants