Skip to content

pow: use shared fishhash context pointer and reduce memory usage#68

Merged
Leon1777 merged 3 commits intokarlsen-network:masterfrom
Leon1777:pow
Feb 12, 2026
Merged

pow: use shared fishhash context pointer and reduce memory usage#68
Leon1777 merged 3 commits intokarlsen-network:masterfrom
Leon1777:pow

Conversation

@Leon1777
Copy link
Copy Markdown

@Leon1777 Leon1777 commented Feb 8, 2026

previously fishhashContext was copied per State, this change switches State to reference a shared context ptr to reduce allocations (and reuse the light cache)

This was first mentioned here #67 and while karlsend is depracted now, the fix seems necessary to also address high memory usage when verifying pow in the karlsen-stratum-bridge

@Leon1777 Leon1777 changed the title pow: use shared fishhash context pointer pow: use shared fishhash context pointer and reduce memory usage Feb 12, 2026
@Leon1777 Leon1777 merged commit a026729 into karlsen-network:master Feb 12, 2026
8 of 10 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.

1 participant