Skip to content

liburing micro-optimzation

Ammar Faizi io-uring 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2nolibc: Fix bloated memset due to unexpected vectorizationsrc/nolibc.c+8 -11 reply
2/2register: Simplify `io_uring_register_file_alloc_range()` functionsrc/register.c+4 -51 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAlviro Iskandar Setiawan
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH liburing v1 0/2] liburing micro-optimzation

From: Ammar Faizi <[email protected]>

Hi Jens,

This series contains liburing micro-optimzation. There are two patches in this series:

## Patch 1
- Fix bloated memset due to unexpected vectorization.
Clang and GCC generate an insane vectorized memset() in nolibc.c. liburing doesn't need such a powerful memset(). Add an empty inline ASM to prevent the compilers from over-optimizing the memset().

## Patch 2
- Simplify io_uring_register_file_alloc_range() function. Use a struct initializer instead of memset(). It simplifies the C code plus effectively reduces the code size.

---
Ammar Faizi (2):
nolibc: Fix bloated memset due to unexpected vectorization
register: Simplify io_uring_register_file_alloc_range() function

 src/nolibc.c   | 9 ++++++++-
 src/register.c | 9 ++++-----
 2 files changed, 12 insertions(+), 6 deletions(-)

base-commit: c76d392035fd271980faa297334268f2cd77d774

Signature · 1 line
Ammar Faizi