Generally, to capture transient facts like this, is it more efficient to create new beans and assert them, or more efficient to create additional properties on existing beans?

for example:

assert(new TempFact("MapExists"));

...versus...

mapController.setMapExists(true);
modify(mapController);

I assume there is some memory advantage to the properties, but are there any performance differences?

Hello Michael,

assert(new TempFact("MapExists")); something like that. You can use
TempFac
t
over and over. If you intern the string in the TempFact bean, then it
could
be pretty fast to check (as the JVM will do an identity compare before
a
string char compare I think). You only need to create it once.




Reply via email to