Skip to content

Commit 6c6977c

Browse files
committed
Improve performance
1 parent 118fa2d commit 6c6977c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎mlp-ea-decentralized/common/ga/client.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ func (c *Client) Start() error {
109109
Evaluated: true,
110110
Fitness: score,
111111

112-
// TODO: Do not serialize again since you have not modified it
113-
// pass msg.Payload as argument
114-
Genome: c.Delegate.SerializeGenome(genome),
112+
// We do not need to serialize again since we have not modified it the genome
113+
Genome: msg.Genome,
115114
}
116115

117116
_, err = client.ReturnIndividual(context.Background(), out)

0 commit comments

Comments
 (0)