liamt19 / Lizard

Chess engine written in C#
MIT License
31 stars 2 forks source link

Force GC before entering UCI #102

Closed liamt19 closed 1 week ago

liamt19 commented 1 week ago

This should free the ~50mb used by the byte[] when decompressing a zstd file, among other smaller things. The garbage collector runs so infrequently that this memory would sometimes never be collected at all, which is a waste.