MarcoFalke
ba39ffe938
Merge bitcoin/bitcoin#26888 : net: simplify the call to vProcessMsg.splice()
...
dfc01ccd73 net: simplify the call to vProcessMsg.splice() (Vasil Dimov)
Pull request description:
At the time when
```cpp
pnode->vProcessMsg.splice(pnode->vProcessMsg.end(), pnode->vRecvMsg, pnode->vRecvMsg.begin(), it);
```
is called, `it` is certainly `pnode->vRecvMsg.end()` which makes the call equivalent to:
```cpp
pnode->vProcessMsg.splice(pnode->vProcessMsg.end(), pnode->vRecvMsg, pnode->vRecvMsg.begin(), pnode->vRecvMsg.end());
```
which is equivalent to:
```cpp
pnode->vProcessMsg.splice(pnode->vProcessMsg.end(), pnode->vRecvMsg);
```
Thus, use the latter. Further, maybe irrelevant, but the latter has constant complexity while the original code is `O(length of vRecvMsg)`.
ACKs for top commit:
theStack:
Code-review ACK dfc01ccd73
MarcoFalke:
review ACK dfc01ccd73 🐑
jonatack:
Light review ACK dfc01ccd73
Tree-SHA512: 9f4eb61d1caf4af9a61ba2f54b915fcfe406db62c58ab1ec42f736505b6792e9379a83d0458d6cc04f289edcec070b7c962f94a920ab51701c3cab103152866f
2023-02-01 09:42:46 +01:00
..
2023-01-30 09:49:01 +01:00
2023-01-26 10:44:05 +01:00
2023-01-04 12:00:25 +00:00
2023-01-04 18:07:31 +00:00
2023-01-03 19:31:29 -06:00
2023-01-16 17:31:32 +01:00
2022-12-24 23:49:50 +00:00
2023-01-04 17:53:58 +00:00
2022-12-24 23:49:50 +00:00
2023-01-26 10:44:05 +01:00
2022-09-29 16:43:30 +01:00
2022-12-24 23:49:50 +00:00
2022-10-23 15:03:04 +01:00
2023-01-30 17:27:44 +00:00
2023-01-03 16:30:55 -05:00
2022-12-24 23:49:50 +00:00
2023-01-26 10:44:05 +01:00
2023-01-31 18:22:19 +01:00
2023-01-30 09:49:01 +01:00
2022-12-12 23:40:36 -05:00
2023-01-19 19:30:10 +01:00
2023-02-01 09:42:46 +01:00
2022-12-24 23:49:50 +00:00
2023-01-24 12:09:29 +01:00
2023-01-30 10:09:41 +00:00
2023-01-05 09:05:14 +00:00
2023-01-17 15:40:29 +00:00
2023-01-31 16:08:44 -05:00
2023-01-26 18:11:13 -05:00
2023-01-31 16:08:44 -05:00
2023-01-26 18:11:13 -05:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-09-09 11:47:27 -04:00
2023-01-11 16:39:11 +00:00
2023-01-13 09:40:57 +00:00
2023-01-26 10:44:05 +01:00
2023-01-13 09:40:57 +00:00
2022-12-24 23:49:50 +00:00
2023-01-26 10:44:05 +01:00
2023-01-23 17:18:35 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-05 09:05:14 +00:00
2022-12-24 23:49:50 +00:00
2022-09-09 10:07:39 +02:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-30 13:13:54 -05:00
2023-01-20 10:36:48 -05:00
2022-12-24 23:49:50 +00:00
2023-01-26 10:44:05 +01:00
2023-01-26 11:51:33 +00:00
2023-01-03 19:31:29 -06:00
2022-12-24 23:49:50 +00:00
2023-01-26 10:44:05 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-18 15:47:06 +00:00
2022-12-24 23:49:50 +00:00
2023-01-30 15:57:12 +00:00
2022-12-24 23:49:50 +00:00
2023-01-05 17:54:08 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-27 17:33:11 +01:00
2022-12-24 23:49:50 +00:00
2023-01-13 09:40:57 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-31 17:55:44 +00:00
2022-11-15 19:23:39 -05:00
2022-09-13 17:15:17 +01:00
2022-09-13 17:15:17 +01:00
2022-11-17 14:52:45 +00:00
2022-11-21 17:30:00 -03:00
2023-01-23 17:29:41 +01:00
2022-12-24 23:49:50 +00:00
2023-01-28 15:24:13 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-29 17:35:15 -05:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-02-01 09:42:46 +01:00
2023-01-26 18:11:13 -05:00
2023-01-10 14:23:27 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-19 17:51:21 -05:00
2023-01-13 09:40:57 +00:00
2023-01-13 09:40:57 +00:00
2023-01-12 13:42:44 +00:00
2023-01-12 13:42:44 +00:00
2023-01-23 16:36:27 +01:00
2023-01-26 10:44:05 +01:00
2023-01-12 13:42:44 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-26 10:45:02 +01:00
2023-01-25 09:33:26 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-15 20:58:19 +00:00
2022-12-24 23:49:50 +00:00
2023-01-20 10:36:48 -05:00
2023-01-20 10:36:48 -05:00
2023-01-05 19:48:14 +01:00
2023-01-05 09:05:14 +00:00
2023-01-26 10:36:18 +00:00
2023-01-26 10:36:18 +00:00
2022-12-24 23:49:50 +00:00
2023-01-16 17:31:32 +01:00
2023-01-16 13:44:56 +01:00
2022-12-24 23:49:50 +00:00
2023-01-05 09:05:14 +00:00
2023-01-03 19:31:29 -06:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00