Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge rust-bitcoin#3227: feat: remove zeroed vector by pushing front
441aac0 fix: vec! macro enabled only for test module (Chris Hyunhum Cho) a050618 feat: remove zeroed vector by pushing front (Chris Hyunhum Cho) Pull request description: Remove useless zeroed vector following rust-bitcoin#3131. 1. Init vector with capacity not to realloc when pushing. 2. If vector is empty(the first iteration), push data from the front. 3. Iterate vector from the front, and copy it from the end. ACKs for top commit: apoelstra: ACK 441aac0 successfully ran local tests jamillambert: ACK 441aac0 Kixunil: ACK 441aac0 Tree-SHA512: dee934f675786e6977216de9516ecb7f03fa17304891f060b33d46ff3a02342b817628b68dc429c65730a52e1d99c3d0d5e9d47afee5b727b06d3c800767369e
- Loading branch information