[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mbcel module for Gnulib?
From: |
Bruno Haible |
Subject: |
Re: mbcel module for Gnulib? |
Date: |
Thu, 20 Jul 2023 16:45:53 +0200 |
I wrote:
> So, clearly, the struct-as-return-value approach nowadays generates
> more efficient code than when mbiter was designed (in 2001-2005).
>
> I will thus create new variants of mbiter, mbuiter, called mbitern, mbuitern
> ('n' for "new"), that allow better optimization by current GCC.
I've called these variants 'mbiterf' and 'mbuiterf'. The benchmarks
now show decent performance for ASCII text (tests a and b):
$ ./gnulib-tool --create-testdir --dir=../testdir1 --single-configure --symlink
mbuiterf-bench-tests mbiterf-bench-tests mbrtoc32-regular
$ cd ../testdir1
$ patch -p1 < .../y.diff
mbiterf mbcel mbuiterf
a 0.226 0.220 0.206
b 0.231 0.221 0.205
c 1.145 0.670 1.179
d 0.850 0.715 0.882
e 0.894 0.720 0.939
f 13.028 5.714 14.654
g 8.855 6.694 9.601
h 8.618 6.596 10.072
i 3.955 2.828 4.631
j 4.169 3.027 4.756
Thanks Paul for the insights!
Bruno
- Re: From wchar_t to char32_t, (continued)
- Re: From wchar_t to char32_t, Paul Eggert, 2023/07/03
- Re: From wchar_t to char32_t, Bruno Haible, 2023/07/04
- Re: From wchar_t to char32_t, Paul Eggert, 2023/07/04
- Re: From wchar_t to char32_t, Bruno Haible, 2023/07/06
- Re: From wchar_t to char32_t, Paul Eggert, 2023/07/06
- mbcel module for Gnulib?, Paul Eggert, 2023/07/09
- Re: mbcel module for Gnulib?, Bruno Haible, 2023/07/11
- Re: mbcel module for Gnulib?, Paul Eggert, 2023/07/12
- Re: mbcel module for Gnulib?, Bruno Haible, 2023/07/13
- Re: mbcel module for Gnulib?, Bruno Haible, 2023/07/16
- Re: mbcel module for Gnulib?,
Bruno Haible <=
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Bruno Haible, 2023/07/16
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Paul Eggert, 2023/07/17
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Bruno Haible, 2023/07/20
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Paul Eggert, 2023/07/21
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Bruno Haible, 2023/07/21
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Paul Eggert, 2023/07/21
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Bruno Haible, 2023/07/24
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Paul Eggert, 2023/07/25
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Paul Eggert, 2023/07/22
- Re: mbcel module for Gnulib?, incomplete multibyte sequences, Bruno Haible, 2023/07/24