Commit af29d51
committed
Merge rust-bitcoin/rust-bitcoin#1071: Optimize
9bf9591 Optimize Witness Serialization (DanGould)
Pull request description:
fix #942
> self.to_vec() allocates, it should be possible to avoid it - just feed the items into serializer.
based on rust-bitcoin/rust-bitcoin#1068
ACKs for top commit:
Kixunil:
ACK 9bf9591
apoelstra:
ACK 9bf9591
Tree-SHA512: 14553dfed20aee50bb6361d44986b38556cbb3e112e1b4d9e3b401c3da831b6bdf159089966254cf371c225ae929fc78516c96a6114b40a7bc1fda7305295e4aWitness Serialization1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
282 | 279 | | |
283 | 280 | | |
284 | 281 | | |
285 | | - | |
286 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
0 commit comments