summaryrefslogtreecommitdiff
path: root/chess-epd.el
diff options
context:
space:
mode:
authorMario Lang <mlang@delysid.org>2014-04-21 11:03:19 +0200
committerMario Lang <mlang@delysid.org>2014-04-21 11:03:19 +0200
commit96d8fbc12ce174e435a83fc69b0cc7a0b8f914e6 (patch)
treedf92e9370f781d551188760038725f6dfc85427d /chess-epd.el
parent705227d73d3b0761c72372126ed6f9d0097a64a2 (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 'chess-epd.el')
0 files changed, 0 insertions, 0 deletions