blackh Wed Aug 27 05:34:17 2003 EDT
Modified files:
/grapevine/cpp Engine.cpp EngineEventQueue.cpp EngineEventQueue.h
Fact.h Firing.cpp Firing.h IOLoop.cpp Operation.cpp
Persist.h Reference.h RuleBase.h
Log:
More performance tweaks.
Index: grapevine/cpp/RuleBase.h
diff -u grapevine/cpp/RuleBase.h:1.24 grapevine/cpp/RuleBase.h:1.25
--- grapevine/cpp/RuleBase.h:1.24 Wed Aug 27 03:25:32 2003
+++ grapevine/cpp/RuleBase.h Wed Aug 27 05:34:16 2003
@@ -1,4 +1,4 @@
-// $Id: RuleBase.h,v 1.24 2003/08/27 10:25:32 blackh Exp $
+// $Id: RuleBase.h,v 1.25 2003/08/27 12:34:16 blackh Exp $
#ifndef _RULEBASE_H_
#define _RULEBASE_H_
@@ -11,6 +11,7 @@
#include <expat.h>
+#include "Allocator.h"
#include "EngineEventQueue.h"
#include "Fact.h"
#include "FactListener.h"
@@ -29,9 +30,9 @@
class Prime;
class SAXHandler;
-typedef std::vector<Rule*> RuleSeq;
-typedef std::map<String, Domain*> DomainMap;
-typedef std::vector<std::pair<int, Reference> > TagBindingSeq;
+typedef std::vector<Rule*, grapevine_allocator<Rule*> > RuleSeq;
+typedef std::map<String, Domain*, std::less<String>, grapevine_allocator<Domain*> > DomainMap;
+typedef std::vector<std::pair<int, Reference>, grapevine_allocator<std::pair<int, Reference> > > TagBindingSeq;
class RuleBase : public FactListener, public RuleListener
{
|