Optimize redundant storage calls during send(_nft)_transfer
#1301
Labels
O: optimization
Objective: aims to optimize performance, allocations and computations
Description
While reviewing the
send_transfer
entrypoint, I've noticed we're making the same storage calls multiple times across different stages, which is inefficient. Specifically, this happens in the following parts of the process for the channel end:And for the next sequence send:
Given that this is a hot path for every ICS-20 and ICS-721 packets, it's crucial to devise a more efficient implementation to optimize these redundant calls. This is the case for the
send_nft_transfer()
as well.The text was updated successfully, but these errors were encountered: