Minor performance tweaks
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
2022-12-25 12:55:09 +01:00
parent 055fbfba78
commit 43bc811704
4 changed files with 23 additions and 28 deletions

View File

@@ -450,7 +450,7 @@ where
}
fn parse_moves(value: &Value, move_library: &Box<dyn MoveLibrary>) -> Box<dyn LearnableMoves> {
let mut moves = LearnableMovesImpl::default();
let mut moves = LearnableMovesImpl::new(100);
let level_moves = value.get("levelMoves").unwrap().as_array().unwrap();
for level_move in level_moves {