Skip to content

Commit

Permalink
Performance|libcore: Rule dependency tracking
Browse files Browse the repository at this point in the history
Use a hash table.
  • Loading branch information
skyjake committed Jun 18, 2016
1 parent fb62417 commit 98fe344
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/sdk/libcore/src/widgets/rule.cpp
Expand Up @@ -14,20 +14,20 @@
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details. You should have received a copy of
* the GNU Lesser General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
* http://www.gnu.org/licenses</small>
*/

#include "de/Rule"
#include "de/math.h"
#include <set>
#include <unordered_set>

namespace de {

bool Rule::_invalidRulesExist = false;

DENG2_PIMPL_NOREF(Rule)
{
typedef std::set<Rule const *> Dependencies;
typedef std::unordered_set<Rule const *> Dependencies;
Dependencies dependencies; // ref'd

/// Current value of the rule.
Expand Down

0 comments on commit 98fe344

Please sign in to comment.