🟡 Minor
Avoid copying outputs during partial-spend detection (src/wallet/spend.cpp:1257, head)
available_coins.All() creates and copies a vector of every COutput, although this loop only reads each output's scriptPubKey. CoinsResult::All() reserves space and inserts all stored outputs; preset_inputs.All() below does the same. Iterate the vectors in the coins map by const reference to preserve the available and selected counts without duplicating outputs during transaction creation. This detection is gated by m_allow_other_inputs, not by whether an APS retry will be attempted.