AtmaWeapon / FFXIVSynthSolver

BSD 2-Clause "Simplified" License
0 stars 1 forks source link

Add the ability to Freeze a State #10

Open AtmaWeapon opened 10 years ago

AtmaWeapon commented 10 years ago

It should be possible to Freeze a state, and after freezing a state it becomes immutable. This would allow us to cache the score and just return the cached score from that point forward. Realistically, all states should be frozen after their initial creation anyway, and because of this freezing states might server as a useful means of bug detection, since it's very easy to make mistakes where you copy a state by reference instead of cloning it.