public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH liburing v1 0/2] liburing micro-optimzation
@ 2023-01-06 15:42 Ammar Faizi
  2023-01-06 15:42 ` [PATCH liburing v1 1/2] nolibc: Fix bloated memset due to unexpected vectorization Ammar Faizi
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ammar Faizi @ 2023-01-06 15:42 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Ammar Faizi, Pavel Begunkov, Gilang Fachrezy,
	VNLX Kernel Department, Alviro Iskandar Setiawan,
	GNU/Weeb Mailing List, io-uring Mailing List

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.

Signed-off-by: Ammar Faizi <[email protected]>
---
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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-06 17:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-06 15:42 [PATCH liburing v1 0/2] liburing micro-optimzation Ammar Faizi
2023-01-06 15:42 ` [PATCH liburing v1 1/2] nolibc: Fix bloated memset due to unexpected vectorization Ammar Faizi
2023-01-06 15:56   ` Alviro Iskandar Setiawan
2023-01-06 15:42 ` [PATCH liburing v1 2/2] register: Simplify `io_uring_register_file_alloc_range()` function Ammar Faizi
2023-01-06 15:59   ` Alviro Iskandar Setiawan
2023-01-06 17:08 ` [PATCH liburing v1 0/2] liburing micro-optimzation Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox