[PATCH v2] Single threaded stdio optimization

Siddhesh Poyarekar siddhesh@gotplt.org
Fri Jun 30 15:24:00 GMT 2017


On Friday 30 June 2017 08:48 PM, Torvald Riegel wrote:
> What's interesting here is that your high-level optimization is faster
> than doing the single-thread check in the low-level lock (x86 has it
> already in the low-level lock).

Cache locality might be a factor - the fp struct may already be in cache
as opposed to the TLS block from which one gets the value of
multiple_threads.

Siddhesh



More information about the Libc-alpha mailing list