diff options
| author | Mario Lang <mlang@delysid.org> | 2014-04-21 11:03:19 +0200 |
|---|---|---|
| committer | Mario Lang <mlang@delysid.org> | 2014-04-21 11:03:19 +0200 |
| commit | 96d8fbc12ce174e435a83fc69b0cc7a0b8f914e6 (patch) | |
| tree | df92e9370f781d551188760038725f6dfc85427d /test | |
| parent | 705227d73d3b0761c72372126ed6f9d0097a64a2 (diff) | |
chess-search-position: 20% performance improvement by treating ray pieces commonly.
When we search for pieces of a certain color, we iterate over all results
from all pieces of that color. However, this is redunant as we end up
to check the compass rose twice, once for bishops/rooks and once for queens.
We actually just need to check all 8 directions once and keep a list of
what piece type can move in which direction.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
