Re: [Boost-bugs] [Boost C++ Libraries] #6324: Flyweight performance improvement

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6324: Flyweight performance improvement
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-13 09:31:33


#6324: Flyweight performance improvement
-------------------------------------------------------+--------------------
  Reporter: Koh Ohnishi <k_onishi@…> | Owner: joaquin
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: multi_index
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords: flyweight, multi_index, hashed_unique, performance
-------------------------------------------------------+--------------------

Comment (by joaquin):

 The problem with erasing by key rather than by iterator is that the former
 can throw (when calculating the hash value of the key, for instance),
 which Boost.Flyweight can't afford.

 Have you tried using
 [http://www.boost.org/libs/flyweight/doc/reference/factories.html#set_factory
 set_factory]? Insertion is probably slower but deletion does not have the
 problems you describe.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6324#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC