emacs-devel
[Top][All Lists]
Advanced

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

Re: Vectorization, SIMD


From: Po Lu
Subject: Re: Vectorization, SIMD
Date: Thu, 24 Apr 2025 08:17:13 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Óscar Fuentes via "Emacs development discussions." <emacs-devel@gnu.org>
writes:

> Did you try an Emacs build with auto-vectorization turned on? Some
> benchmark that theoretically could benefit from it.
>
> IIRC, hand-coded vectorization reportedly had an impact of orders of
> magnitude on some character-manipulation tasks, such as text
> searching.

Auto-vectorization is already enabled by default in the previous three
releases of GCC.  It is quite conservative and tries to minimalize the
code size penalty incurred by vectorization which is probably TRT in
the context of Emacs.

The only area where vectorization has had an impact in Emacs that I
personally recall is the Android font backend's compositing routines,
which even GCC 4.6.x is capable of vectorizing satisfactorily.
(Auto-vectorization is always enabled on Android.)  Still I was
ultimately compelled to vectorize it manually on NEON-enabled systems in
the interests of unoptimized configurations.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]