Skip to content

Commit

Permalink
Faster to cons than concat 1 element list.
Browse files Browse the repository at this point in the history
We might want to switch to Resize array as suggested on #12
  • Loading branch information
cgravill committed Jun 20, 2019
1 parent 28fc14d commit 366daa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hype/Optimize.fs
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ type Optimize =
earlystop <- true
diverged <- true

whist <- [w] @ whist
lhist <- [l] @ lhist
whist <- w :: whist
lhist <- l :: lhist

if (l' < par.ImprovementThreshold * lbest) && (not diverged) then
wbest <- w
Expand Down

0 comments on commit 366daa7

Please sign in to comment.