You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the generator function is run again before each part, even if all parts request exactly the same input. This wastes computation time because the puzzle input has to be parsed and transformed at least twice.
It would be preferable if the output of the generator function could be reused, especially if the solver functions only take immutable references, like the examples in the readme.
Right now the generator function is run again before each part, even if all parts request exactly the same input. This wastes computation time because the puzzle input has to be parsed and transformed at least twice.
It would be preferable if the output of the generator function could be reused, especially if the solver functions only take immutable references, like the examples in the readme.
For example, if the generator returns a
Vec
,and the solvers take an immutable slice or another reference type,
it should be possible to use the same
Vec
returned by the generator for both solvers.The text was updated successfully, but these errors were encountered: