You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Marcos Felipe Pontes Rezende (Jira)" <ji...@apache.org> on 2021/07/20 14:49:00 UTC

[jira] [Commented] (SOLR-15496) LTRRescorer unnecessarily (re)creates ScoreDoc Comparator objects

    [ https://issues.apache.org/jira/browse/SOLR-15496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17384315#comment-17384315 ] 

Marcos Felipe Pontes Rezende commented on SOLR-15496:
-----------------------------------------------------

Hello everyone,

 

I'm new on developing for Solr, and I opened a PR to solve this issue. I hope that everything was fine with the code.

 

PR: [SOLR-15496 LTRRescorer unnecessarily (re)creates Comparator by marcosfpr · Pull Request #228 · apache/solr (github.com)|https://github.com/apache/solr/pull/228]

> LTRRescorer unnecessarily (re)creates ScoreDoc Comparator objects
> -----------------------------------------------------------------
>
>                 Key: SOLR-15496
>                 URL: https://issues.apache.org/jira/browse/SOLR-15496
>             Project: Solr
>          Issue Type: Task
>          Components: ltr
>            Reporter: Christine Poerschke
>            Priority: Minor
>              Labels: newdev
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Discovered by [~mdrob] whilst reviewing SOLR-14920 changes:
> A static instance of the comparator(s) could be created and reused.
> * https://github.com/apache/solr/blob/af0455ac8366d6dba941f2b2674ed2a8245c76f9/solr/contrib/ltr/src/java/org/apache/solr/ltr/LTRRescorer.java#L133-L162
> * https://github.com/apache/solr/pull/189#discussion_r657360363



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org