Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Mon, 12 Jun 2023 15:56:04 +0800
From: "847567161" <847567161@...com>
To: "musl" <musl@...ts.openwall.com>
Subject: Re: [Patch 1/1] vfprintf: optimize vfprintf performance

Hi all, 

How about the patch sent in May?I can modify it if there are any problem.

the benchmark show there are about  30% benefits for commonly used format string.

before opt: 160ns
after opt: 110ns

static void BM_stdio_printf_s(benchmark::State&amp; state) {                                                       
  while (state.KeepRunning()) {                                                                               
        char buf[BUFSIZ];                                                                                         
        snprintf(buf, sizeof(buf), "this is a more typical error message with detail: %s",                         
                "No such file or directory");
    }                                                                                                           
}                                                                                                             
MUSL_BENCHMARK(BM_stdio_printf_s);


Chuang Yin
Download attachment "optimize_printf.diff" of type "application/octet-stream" (1970 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.