Skip to content

Tidy up clear_tt and dispose_trans_table #326

Description

@zzcgumn

These two methods do exactly the same thing, clear_tt calling dispose_trans_table directly. The original intention with clear_tt was the reset the transposition table without deleting all memory to support better resource re-use. This was, however, buggy and Asan on Linux discovered a real problem that the solver attempted to reuse memory that had been freed.

We should at least not have two methods that do the same thing. Whether clearing and re-using memory would be faster than deleting and reallocating would need performance measurements. We would also need to investigate whether it is feasible to re-use memory. DDS 2.9 used statically allocated memory for transposition tables, which indicates that it should be possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions