diff options
author | smatz <smatz@openttd.org> | 2011-04-19 18:12:47 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2011-04-19 18:12:47 +0000 |
commit | 0c55cbfa73ca1ebfa7e22dd0778d87249ae5b31b (patch) | |
tree | 1fd8c19e17d548c13edbe71be5a22c78098cb074 /src/pathfinder/yapf/yapf_node_rail.hpp | |
parent | b1e3b098d1392fd4360a0536ce3e721812ba27fd (diff) | |
download | openttd-0c55cbfa73ca1ebfa7e22dd0778d87249ae5b31b.tar.xz |
(svn r22350) -Change: make YAPF hash tables much smaller, it should improve performance significantly (about 15%)
Diffstat (limited to 'src/pathfinder/yapf/yapf_node_rail.hpp')
-rw-r--r-- | src/pathfinder/yapf/yapf_node_rail.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfinder/yapf/yapf_node_rail.hpp b/src/pathfinder/yapf/yapf_node_rail.hpp index 31149ec7c..275133bd8 100644 --- a/src/pathfinder/yapf/yapf_node_rail.hpp +++ b/src/pathfinder/yapf/yapf_node_rail.hpp @@ -291,7 +291,7 @@ typedef CYapfRailNodeT<CYapfNodeKeyExitDir> CYapfRailNodeExitDir; typedef CYapfRailNodeT<CYapfNodeKeyTrackDir> CYapfRailNodeTrackDir; /* Default NodeList types */ -typedef CNodeList_HashTableT<CYapfRailNodeExitDir , 10, 12> CRailNodeListExitDir; -typedef CNodeList_HashTableT<CYapfRailNodeTrackDir, 12, 16> CRailNodeListTrackDir; +typedef CNodeList_HashTableT<CYapfRailNodeExitDir , 8, 10> CRailNodeListExitDir; +typedef CNodeList_HashTableT<CYapfRailNodeTrackDir, 8, 10> CRailNodeListTrackDir; #endif /* YAPF_NODE_RAIL_HPP */ |