Re: [PATCH] DWARF: Don't expand hash table when no insert is needed

2018-12-17 Thread Richard Biener
On Mon, Dec 17, 2018 at 2:26 PM H.J. Lu wrote: > > On Mon, Dec 17, 2018 at 2:00 AM Richard Biener > wrote: > > > > On Sun, Dec 16, 2018 at 9:33 PM H.J. Lu wrote: > > > > > > find_slot_with_hash has > > > > > > if (insert == INSERT && m_size * 3 <= m_n_elements * 4) > > > expand (); > > > >

Re: [PATCH] DWARF: Don't expand hash table when no insert is needed

2018-12-17 Thread H.J. Lu
On Mon, Dec 17, 2018 at 2:00 AM Richard Biener wrote: > > On Sun, Dec 16, 2018 at 9:33 PM H.J. Lu wrote: > > > > find_slot_with_hash has > > > > if (insert == INSERT && m_size * 3 <= m_n_elements * 4) > > expand (); > > > > which may expand hash table even if no insert is neeed and change ha

Re: [PATCH] DWARF: Don't expand hash table when no insert is needed

2018-12-17 Thread Richard Biener
On Sun, Dec 16, 2018 at 9:33 PM H.J. Lu wrote: > > find_slot_with_hash has > > if (insert == INSERT && m_size * 3 <= m_n_elements * 4) > expand (); > > which may expand hash table even if no insert is neeed and change hash > table traverse order. When output_macinfo_op is called, all index >