Re: [PATCH 4/6] Move ferror out of hot loop of file cache

2025-01-24 Thread Richard Biener
> Am 27.12.2024 um 03:48 schrieb Andi Kleen : > > From: Andi Kleen > > glibc ferror is surprisingly expensive. Move it out of the hot loop > of finding lines by setting a flag after the actual IO operations. This 4/6 is OK. Richard > gcc/ChangeLog: > >PR preprocessor/118168 >* i

[PATCH 4/6] Move ferror out of hot loop of file cache

2024-12-26 Thread Andi Kleen
From: Andi Kleen glibc ferror is surprisingly expensive. Move it out of the hot loop of finding lines by setting a flag after the actual IO operations. gcc/ChangeLog: PR preprocessor/118168 * input.cc (file_cache_slot::m_error): New field. (file_cache_slot::create): Clea