Re: [PATCH 1/3] attribs: Cache the gnu namespace

2023-11-09 Thread Jeff Law
On 11/6/23 05:23, Richard Sandiford wrote: Later patches add more calls to get_attribute_namespace. For scoped attributes, this is a simple operation on tree pointers. But for normal GNU attributes (the vast majority), it involves a call to get_identifier ("gnu"). This patch caches the identi

[PATCH 1/3] attribs: Cache the gnu namespace

2023-11-06 Thread Richard Sandiford
Later patches add more calls to get_attribute_namespace. For scoped attributes, this is a simple operation on tree pointers. But for normal GNU attributes (the vast majority), it involves a call to get_identifier ("gnu"). This patch caches the identifier for speed. Admittedly I'm just going off g