Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Vec::with_capacity() to avoid reallocations with repeated push()'s
The length of tx_cells is known before the loop that populates it, so we can appropriately allocate the Vec immediatley to avoid any reallocations.
- Loading branch information