generator: faster Equals implementation