Spieger : Here you could use a fastEquals where you remove all the "class type validations" and have a equals function that requires a BitVector instead of a Object.
Junkdog: Hmm, not sure it would make a measurable difference, but could be interesting to test next time when running the benchmarks. The bitsets are rarely compared by equality; only when transmuting to a new composition id or when a new composition id is allocated.
From junkdog/artemis-odb#586 discussion
Spieger : Here you could use a fastEquals where you remove all the "class type validations" and have a equals function that requires a BitVector instead of a Object.
Junkdog: Hmm, not sure it would make a measurable difference, but could be interesting to test next time when running the benchmarks. The bitsets are rarely compared by equality; only when transmuting to a new composition id or when a new composition id is allocated.