Skip to content

Conversation

munna0908
Copy link
Contributor

This PR streamlines the multithreading logic for erasure encoding and decoding by adopting the isolate-and-move pattern

@munna0908 munna0908 requested review from dryajov and gmega June 27, 2025 14:16
@munna0908 munna0908 self-assigned this Jun 27, 2025
@munna0908 munna0908 force-pushed the fix/improve-erasure branch from 8d4c13f to 63fee7e Compare July 10, 2025 09:17
@munna0908 munna0908 marked this pull request as ready for review July 10, 2025 10:52
var paritySeq = newSeq[seq[byte]](task[].parityLen)
for i in 0 ..< task[].parityLen:
var innerSeq = isolate(parity[i])
paritySeq[i] = extract(innerSeq)
Copy link
Contributor

@gmega gmega Oct 1, 2025

Choose a reason for hiding this comment

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

I'm not sure I understand this - you're isolating something, then extracting it right after? Is this supposed to implement a move?

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