b-inary / postflop-solver

[Development suspended] An efficient open-source postflop solver library written in Rust
GNU Affero General Public License v3.0
246 stars 97 forks source link

Release Ram after solving #29

Open Barcode9 opened 1 year ago

Barcode9 commented 1 year ago

Hi,

one very cool change that would allow some experimenting with having multiple different solves open and compare them, would be to release RAM after solving.

b-inary commented 1 year ago

In fact, RAM is essentially required if we want to keep all information about the strategy and EVs for all decision nodes. In this sense, we cannot release RAM after solving. A possible workaround, for example, is to discard information about post-river nodes and recalculate them on the fly when we want to see them. This treatment reduces RAM usage, but may also slightly degrade the user experience.