JackalLabs / canine-chain

The Jackal Protocol blockchain node binary
https://jackalprotocol.com
MIT License
39 stars 17 forks source link

Claim strays using less memory #444

Closed TheMarstonConnell closed 6 months ago

TheMarstonConnell commented 6 months ago

Claim Strays Memory Fix

Never again

image

Essentially, we were loading ever active deal every time a stray was claimed, now we try to use fid_cid mappings to make the lookup faster, and if that for some reason fails, we fall back on loading every active deal. This should improve memory usage A LOT!