summaryrefslogtreecommitdiff
path: root/src/PolySetEvaluator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/PolySetEvaluator.cc')
-rw-r--r--src/PolySetEvaluator.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/PolySetEvaluator.cc b/src/PolySetEvaluator.cc
index fc68fb2..e0fcf68 100644
--- a/src/PolySetEvaluator.cc
+++ b/src/PolySetEvaluator.cc
@@ -19,11 +19,13 @@
*/
shared_ptr<PolySet> PolySetEvaluator::getPolySet(const AbstractNode &node, bool cache)
{
- std::string cacheid = this->tree.getIdString(node);
+ const std::string &cacheid = this->tree.getIdString(node);
if (PolySetCache::instance()->contains(cacheid)) {
-// For cache debugging
-// PRINTF("Cache hit: %s", cacheid.substr(0, 40).c_str());
+#ifdef DEBUG
+ // For cache debugging
+ PRINTF("PolySetCache hit: %s", cacheid.substr(0, 40).c_str());
+#endif
return PolySetCache::instance()->get(cacheid);
}
contact: Jan Huwald // Impressum