Skip to content

Commit

Permalink
BitVector replaces BitSet usage; faster bits->IntBag
Browse files Browse the repository at this point in the history
- [Optimized][bv-jmh] decoding of bits to integers, making all entity mutations more efficient.
- `unsafeGet`, `unsafeSet`, `unsafeClear` require that the `BitVector`
- `BitVector::ensureCapacity(int bits)` explicitly grows the bit vector. Typically used in
  together with the `unsafe-` methods.
- `EntityManager::registerEntityStore(BitVector)` - when representing entity id:s as bits,
  makes `unsafe-` methods safe - as the EntityManager grows the bit vector as necessary.
  • Loading branch information
junkdog committed Jul 23, 2016
1 parent af59799 commit 8a90ba6
Show file tree
Hide file tree
Showing 35 changed files with 2,096 additions and 208 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,16 @@


#### Version: 2.0.0-SNAPSHOT
- **BREAKING CHANGES**
- All usage of BitSet replaced by [BitVector][bitvector].

- **BitVector**
- [Optimized][bv-jmh] decoding of bits to integers, making all entity mutations more efficient.
- `unsafeGet`, `unsafeSet`, `unsafeClear` require that the `BitVector`
- `BitVector::ensureCapacity(int bits)` explicitly grows the bit vector. Typically used in
together with the `unsafe-` methods.
- `EntityManager::registerEntityStore(BitVector)` - when representing entity id:s as bits,
makes `unsafe-` methods safe - as the EntityManager grows the bit vector as necessary.
- **Fix**: Bag and IntBag equals method would return false for identical bags with different capacities.


Expand Down

0 comments on commit 8a90ba6

Please sign in to comment.