On Wed, Jun 5, 2024 at 9:50 PM Andres Freund <andres(at)anarazel(dot)de> wrote:
> Depending on the architecture / ABI / compiler options it's often not
> meaningfully more expensive to access a thread local variable than a "normal"
> variable.
>
> I think these days it's e.g. more expensive on x86-64 windows, but not
> linux. On arm the overhead of TLS is more noticeable, across platforms,
> afaict.
I mean, to me, this still sounds like we want multithreading to be a
build-time option.
--
Robert Haas
EDB: http://www.enterprisedb.com