From 3ab56a188e83054420d9004be1c6d07276c91375 Mon Sep 17 00:00:00 2001
From: Todd Gamblin <tgamblin@llnl.gov>
Date: Sun, 22 May 2016 18:33:13 -0700
Subject: [PATCH] Fixes #980: really slow spack spec performance

- `spack spec dealii` now takse seconds rather than 18 minutes.

- Slow hash (`dag_hash`) was accidentally inserted into the fast hash
  (`__hash__`).

- Do not put the slow hash in the fast hash.
---
 lib/spack/spack/spec.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 2cfcb7f341..7c09af4c21 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -1750,8 +1750,7 @@ def _cmp_node(self):
                 self.variants,
                 self.architecture,
                 self.compiler,
-                self.compiler_flags,
-                self.dag_hash())
+                self.compiler_flags)
 
     def eq_node(self, other):
         """Equality with another spec, not including dependencies."""
-- 
GitLab