Re: [multithreading] extension compatibility
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Tristan Partin <tristan@partin.io>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>,
Thomas Munro <thomas.munro@gmail.com>
Date: 2024-06-06T01:59:42Z
Lists: pgsql-hackers
On Wed, Jun 5, 2024 at 9:50 PM Andres Freund <andres@anarazel.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