Commit ab8af9c
committed
support for ZeroCopy Send
two changes:
1. use IORING_OP_SENDMSG_ZC instead of IORING_OP_SENDMSG for sending.
2. support for multislot completion notify.
the proactor nature in asio is very suitable for zero-copy send. since
the buffer is assumed to be valid until operation complete.
the only drawback is kernel requirement but this is not an issue. people
tent to upgrade their kernel to take advantage of io-uring anyway.1 parent 62481a2 commit ab8af9c
File tree
3 files changed
+14
-2
lines changed- asio/include/asio/detail
- impl
3 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
485 | 497 | | |
486 | 498 | | |
487 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments