jordanbray / chess

A rust library to manage chess move generation
https://jordanbray.github.io/chess/
MIT License
234 stars 54 forks source link

Convert CacheTable storage into boxed slice #10

Closed nvzqz closed 6 years ago

nvzqz commented 6 years ago

Using a Vec is unnecessary because the storage is never resized. This sheds a quarter off of the container size (32 to 24 bytes on 64-bit).

I also changed vector creation from push loop to using vec!, which is much faster.

jordanbray commented 6 years ago

Looks good