BenjaminChambers / SudokuSharp

A C# library for working with Sudoku puzzles
MIT License
3 stars 3 forks source link

Location utility data structures #8

Closed BenjaminChambers closed 7 years ago

BenjaminChambers commented 7 years ago

The pre-compute lists of data for Locations were stored internally as arrays. I need to experiment with different methods of accessing them for the best performance without allowing programs to update those sets of data.

BenjaminChambers commented 7 years ago

It looks like replacing static data structures in Location with int[] cast to IReadOnlyList is about as fast as you can get while still guaranteeing data integrity.

BenjaminChambers commented 7 years ago

Closed by pull #15