[jira] [Commented] (LUCENE-8552) optimize getMergedFieldInfos for one-segment FieldInfos

2018-11-17 Thread Christophe Bismuth (JIRA)


[ 
https://issues.apache.org/jira/browse/LUCENE-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16690466#comment-16690466
 ] 

Christophe Bismuth commented on LUCENE-8552:


Thank you for your help [~dsmiley] (y)

> optimize getMergedFieldInfos for one-segment FieldInfos
> ---
>
> Key: LUCENE-8552
> URL: https://issues.apache.org/jira/browse/LUCENE-8552
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: David Smiley
>Assignee: David Smiley
>Priority: Minor
> Fix For: 7.7
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the 
> first and only LeafReader if there is only one LeafReader.
> Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo 
> implemented equals() & hashCode() (including a cached hashCode), maybe we 
> could also call equals() iterating through the FieldInfos to see if we should 
> bother adding it to the FieldInfos.Builder?  Admittedly this is speculative; 
> may not be worth the bother.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8552) optimize getMergedFieldInfos for one-segment FieldInfos

2018-11-16 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/LUCENE-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16690044#comment-16690044
 ] 

ASF subversion and git services commented on LUCENE-8552:
-

Commit 0ed5cd5c3f97775567696f473579d0ad0623d749 in lucene-solr's branch 
refs/heads/branch_7x from [~cbismuth]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=0ed5cd5 ]

LUCENE-8552: Optimize getMergedFieldInfos for zero or one segment

Closes #499
(cherry picked from commit db9542526ecc742234bff77d609a0f7071a78b46)


> optimize getMergedFieldInfos for one-segment FieldInfos
> ---
>
> Key: LUCENE-8552
> URL: https://issues.apache.org/jira/browse/LUCENE-8552
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: David Smiley
>Priority: Minor
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the 
> first and only LeafReader if there is only one LeafReader.
> Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo 
> implemented equals() & hashCode() (including a cached hashCode), maybe we 
> could also call equals() iterating through the FieldInfos to see if we should 
> bother adding it to the FieldInfos.Builder?  Admittedly this is speculative; 
> may not be worth the bother.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8552) optimize getMergedFieldInfos for one-segment FieldInfos

2018-11-16 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/LUCENE-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16690037#comment-16690037
 ] 

ASF subversion and git services commented on LUCENE-8552:
-

Commit db9542526ecc742234bff77d609a0f7071a78b46 in lucene-solr's branch 
refs/heads/master from [~cbismuth]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=db95425 ]

LUCENE-8552: Optimize getMergedFieldInfos for zero or one segment


> optimize getMergedFieldInfos for one-segment FieldInfos
> ---
>
> Key: LUCENE-8552
> URL: https://issues.apache.org/jira/browse/LUCENE-8552
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: David Smiley
>Priority: Minor
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the 
> first and only LeafReader if there is only one LeafReader.
> Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo 
> implemented equals() & hashCode() (including a cached hashCode), maybe we 
> could also call equals() iterating through the FieldInfos to see if we should 
> bother adding it to the FieldInfos.Builder?  Admittedly this is speculative; 
> may not be worth the bother.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8552) optimize getMergedFieldInfos for one-segment FieldInfos

2018-11-15 Thread Christophe Bismuth (JIRA)


[ 
https://issues.apache.org/jira/browse/LUCENE-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16687694#comment-16687694
 ] 

Christophe Bismuth commented on LUCENE-8552:


Hi [~dsmiley], I've opened PR 
[#8552|https://github.com/apache/lucene-solr/pull/499] on GitHub to implement 
this improvement.

> optimize getMergedFieldInfos for one-segment FieldInfos
> ---
>
> Key: LUCENE-8552
> URL: https://issues.apache.org/jira/browse/LUCENE-8552
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: David Smiley
>Priority: Minor
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the 
> first and only LeafReader if there is only one LeafReader.
> Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo 
> implemented equals() & hashCode() (including a cached hashCode), maybe we 
> could also call equals() iterating through the FieldInfos to see if we should 
> bother adding it to the FieldInfos.Builder?  Admittedly this is speculative; 
> may not be worth the bother.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8552) optimize getMergedFieldInfos for one-segment FieldInfos

2018-11-14 Thread Christophe Bismuth (JIRA)


[ 
https://issues.apache.org/jira/browse/LUCENE-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16686470#comment-16686470
 ] 

Christophe Bismuth commented on LUCENE-8552:


Thanks a lot [~dsmiley]! I'll come back to you as soon as I have a patch.

> optimize getMergedFieldInfos for one-segment FieldInfos
> ---
>
> Key: LUCENE-8552
> URL: https://issues.apache.org/jira/browse/LUCENE-8552
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: David Smiley
>Priority: Minor
>
> FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the 
> first and only LeafReader if there is only one LeafReader.
> Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo 
> implemented equals() & hashCode() (including a cached hashCode), maybe we 
> could also call equals() iterating through the FieldInfos to see if we should 
> bother adding it to the FieldInfos.Builder?  Admittedly this is speculative; 
> may not be worth the bother.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8552) optimize getMergedFieldInfos for one-segment FieldInfos

2018-11-13 Thread David Smiley (JIRA)


[ 
https://issues.apache.org/jira/browse/LUCENE-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16685649#comment-16685649
 ] 

David Smiley commented on LUCENE-8552:
--

I'm glad you wish to contribute Christophe!

The intent is merely to recognize that there might be nothing to merge (<= 1 
LeafReader).  No new FieldInfos (or FieldInfo) need to be created.   If zero 
LeafReaders then we can return FieldInfos.EMPTY -- a recent addition.

{{FieldInfos.Builder}} takes {{FieldInfo}} not {{FieldInfos}}; maybe this was a 
typo on your part.

I propose ignoring the 2nd part of my description concerning equals/hashCode.

> optimize getMergedFieldInfos for one-segment FieldInfos
> ---
>
> Key: LUCENE-8552
> URL: https://issues.apache.org/jira/browse/LUCENE-8552
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: David Smiley
>Priority: Minor
>
> FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the 
> first and only LeafReader if there is only one LeafReader.
> Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo 
> implemented equals() & hashCode() (including a cached hashCode), maybe we 
> could also call equals() iterating through the FieldInfos to see if we should 
> bother adding it to the FieldInfos.Builder?  Admittedly this is speculative; 
> may not be worth the bother.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8552) optimize getMergedFieldInfos for one-segment FieldInfos

2018-11-12 Thread Christophe Bismuth (JIRA)


[ 
https://issues.apache.org/jira/browse/LUCENE-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16683801#comment-16683801
 ] 

Christophe Bismuth commented on LUCENE-8552:


Is the underlying idea to limit the number of {{FieldInfos}} instances added to 
the {{FieldInfos.Builder}} for performances purpose?

> optimize getMergedFieldInfos for one-segment FieldInfos
> ---
>
> Key: LUCENE-8552
> URL: https://issues.apache.org/jira/browse/LUCENE-8552
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: David Smiley
>Priority: Minor
>
> FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the 
> first and only LeafReader if there is only one LeafReader.
> Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo 
> implemented equals() & hashCode() (including a cached hashCode), maybe we 
> could also call equals() iterating through the FieldInfos to see if we should 
> bother adding it to the FieldInfos.Builder?  Admittedly this is speculative; 
> may not be worth the bother.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8552) optimize getMergedFieldInfos for one-segment FieldInfos

2018-11-12 Thread Christophe Bismuth (JIRA)


[ 
https://issues.apache.org/jira/browse/LUCENE-8552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16683779#comment-16683779
 ] 

Christophe Bismuth commented on LUCENE-8552:


Hi, I'd like to work on this one.

> optimize getMergedFieldInfos for one-segment FieldInfos
> ---
>
> Key: LUCENE-8552
> URL: https://issues.apache.org/jira/browse/LUCENE-8552
> Project: Lucene - Core
>  Issue Type: New Feature
>Reporter: David Smiley
>Priority: Minor
>
> FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the 
> first and only LeafReader if there is only one LeafReader.
> Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo 
> implemented equals() & hashCode() (including a cached hashCode), maybe we 
> could also call equals() iterating through the FieldInfos to see if we should 
> bother adding it to the FieldInfos.Builder?  Admittedly this is speculative; 
> may not be worth the bother.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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