this is a little helper class for fast comparing String with string literals.
The class itself is not doing anything with heap, so the common using is as static variable inside a function
bool fastEqual(IN(RString) str)
// length and hashCode has only calculated at first call of fastCallstaticStaticAsciiLiteral myLit(myLiteral);
return myLit == str;
// or if str != Nilreturn str->equals(myLit);