StringIntern

Version 2

    This applies to java in general, but especially for rules.

     

    If you are storing strings as fields in your beans, think about .intern()'ing them. This means that comparisons can be as fast as ID compares (at least for equality, inequality will still require a string compare).