CWRules / Othello_Python

Othello-playing AI
GNU General Public License v3.0
0 stars 0 forks source link

Memory usage and performance #6

Closed CWRules closed 4 years ago

CWRules commented 4 years ago

Program runs very slowly as turns progress, and memory usage becomes very high. Try pruning unnecessary nodes after each move.

CWRules commented 4 years ago

Also preserve node_list instead of rebuilding it on each call.

CWRules commented 4 years ago

Garbage collector deals with orphaned nodes if single parent-child link is broken.

CWRules commented 4 years ago

Preserving node_list is not likely to help much, and makes things more complicated. Close this for now.