lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2289) Calls to SegmentInfos.message should be wrapped w/ infoStream != null checks
Date Sat, 27 Feb 2010 21:41:05 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shai Erera updated LUCENE-2289:
-------------------------------

    Attachment: LUCENE--2289.patch

Patch w/ the proposed changes.

> Calls to SegmentInfos.message should be wrapped w/ infoStream != null checks
> ----------------------------------------------------------------------------
>
>                 Key: LUCENE-2289
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2289
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Shai Erera
>             Fix For: 3.1
>
>         Attachments: LUCENE--2289.patch
>
>
> To avoid the expensive message creation (which involves the '+' operator on strings,
calls to message should be wrapped w/ infoStream != null check, rather than inside message().
I'll attach a patch which does that.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message