junkdog / entity-system-benchmarks

microbenchmarks comparing ECS (entity component system) frameworks for java
Apache License 2.0
35 stars 8 forks source link

Consider measuring effect of fastEquals. #21

Open DaanVanYperen opened 5 years ago

DaanVanYperen commented 5 years ago

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.