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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx>

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.

Signed-off-by: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx>
---
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
-- 
Ammar Faizi




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux