------- Additional Comments From pcarlini at suse dot de  2005-09-03 01:16 
-------
Ok, I can confirm that Andrew's guess, about the involvment of Mark's patch:
what is happening is that, inside hashtable<>::m_rehash, X<0>::n_primes == 0
whereas, at line 383 of tr1/hashtable we find:

  template<int dummy>
    struct X
    {
      static const int n_primes = 256;
      static const unsigned long primes[n_primes + 1];
    };

therefore, n_primes is supposed to be 256. Then everything goes nuts, in
short, at every insertion a very costly rehashing happens.

Mark, can you please have a look at this issue? 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23667

Reply via email to