]> git.mdlowis.com Git - proto/labwc.git/commit
string-helpers: remove restrict qualifier
authorJohn Lindgren <john@jlindgren.net>
Fri, 4 Jul 2025 04:15:56 +0000 (00:15 -0400)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 21 Jul 2025 14:51:10 +0000 (16:51 +0200)
commit407a29aa239dd7c4a0ee90ccd08529229457d8ce
treeb90c4c53f667058f2afa7742c74e8b4c9cd067be
parent681f9e9a7bf6e33845967abebb32eb93aa9b5716
string-helpers: remove restrict qualifier

'restrict' is harmful as it encourages the compiler to make dangerous
assumptions while increasing cognitive load on the human programmer.

The extra 1% (or whatever) of performance here is not worth the cost.
include/common/string-helpers.h
src/common/string-helpers.c