Skip to content

Conversation

@calou
Copy link

@calou calou commented Jan 14, 2016

Signed-off-by: Sébastien Gruchet [email protected]

Signed-off-by: Sébastien Gruchet <[email protected]>
if (priorMap != null) {
//TODO analyze and optimize this code, looks like double copy.
System.arraycopy(priorMap, 0, prob, 0, prob.length);
for(int i=0;i<prob.length;++i) prob[i] = priorMap[i];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the removal of this line is intentional, you should update the Javadoc for this method too.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lines 203 and 204 do exactly the same job ie copying the priorMap array in the prob array. I don't think there just should be any update to the Javadoc for search a change.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On taking a fresh look at this, I think you're right and no update is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants