| 
  | 
Message-ID: <bcea8048-2e98-77c0-5454-2d72ddbc99c4@mirbsd.de>
Date: Fri, 31 Oct 2025 16:45:09 +0100 (CET)
From: Thorsten Glaser <tg@...bsd.de>
To: Alejandro Colomar <alx@...nel.org>
cc: libc-alpha@...rceware.org, musl@...ts.openwall.com, 
    "A. Wilcox" <AWilcox@...cox-tech.com>, 
    Lénárd Szolnoki <cpp@...ardszolnoki.com>, 
    Collin Funk <collin.funk1@...il.com>, 
    Arthur O'Dwyer <arthur.j.odwyer@...il.com>, 
    Jonathan Wakely <jwakely@...hat.com>, 
    Thiago Macieira <thiago@...ieira.org>, Alejandro Colomar <alx@...nel.org>
Subject: Re: Re: realloci(): A realloc() variant that works in-place
On Fri, 31 Oct 2025, Alejandro Colomar wrote:
>In C, I've sometimes seen programmers trying to check if realloc(3)
>moved or not, to skip some work.  That's a micro-optimization that I've
>never written myself, so I won't defend it.  But for some reason, some
>programmers keep wanting to do it.
Huh. That one if is probably more effort than just doing the
arithmetics always… if it’s not actually UB…
We don’t always need to follow what “some programmers keep
wanting to do” ☻
bye,
//mirabilos
-- 
<igli> exceptions: a truly awful implementation of quite a nice idea.
<igli> just about the worst way you could do something like that, afaic.
<igli> it's like anti-design.  <mirabilos> that too… may I quote you on that?
<igli> sure, tho i doubt anyone will listen ;)
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.