The current logic in check_confirm_of_tx_sig_list (get_confirmed_slot_for_tx_sig_list in this repo's version) and _wait_for_confirm_of_tx_list busy-polls the getSignatureStatuses API and then goes to sleep if the txs are not ready, blocking the thread in the meantime. It would be more efficient if instead the code used the Solana WebSocket interface and subscribed via signatureSubscribe to all relevant signatures.
We're observing that the proxy spends a decent amount of time waiting in the _wait_for_confirm_of_tx_list function:
The current logic in
check_confirm_of_tx_sig_list
(get_confirmed_slot_for_tx_sig_list
in this repo's version) and_wait_for_confirm_of_tx_list
busy-polls thegetSignatureStatuses
API and then goes to sleep if the txs are not ready, blocking the thread in the meantime. It would be more efficient if instead the code used the Solana WebSocket interface and subscribed viasignatureSubscribe
to all relevant signatures.We're observing that the proxy spends a decent amount of time waiting in the
_wait_for_confirm_of_tx_list
function: