You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Bianco Veigel (JIRA)" <ji...@apache.org> on 2010/03/16 18:28:27 UTC

[jira] Created: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Performance enhancement in FastVectorHighlighter
------------------------------------------------

                 Key: LUCENENET-350
                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
             Project: Lucene.Net
          Issue Type: Improvement
            Reporter: Bianco Veigel


I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)

This can be usual if your indexing i.e. log or trace files.
Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%



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


[jira] Commented: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Ben Martz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846545#action_12846545 ] 

Ben Martz commented on LUCENENET-350:
-------------------------------------

Agreed. I was just concerned about the code divergence considering the core guideline of remaining 1:1 with the original Java code while considering this contribution as a valuable (and unique to Lucene.Net) branch of an existing contrib item. I'm at a loss for a better idea though right now.

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Bianco Veigel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bianco Veigel updated LUCENENET-350:
------------------------------------

    Attachment:     (was: VectorHighlightMapper.cs)

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Bianco Veigel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bianco Veigel updated LUCENENET-350:
------------------------------------

    Attachment:     (was: FieldTermStack.cs)

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Resolved: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Digy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Digy resolved LUCENENET-350.
----------------------------

    Resolution: Fixed

Thanks Bianco.
I committed the LUCENENET-350.patch

DIGY

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, LUCENENET-350.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Digy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Digy updated LUCENENET-350:
---------------------------

    Attachment: LUCENENET-350.patch

Thanks Bianco.

If LUCENENET-350.patch is OK for everyone, I will commit & close this issue.

DIGY

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, LUCENENET-350.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Bianco Veigel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bianco Veigel updated LUCENENET-350:
------------------------------------

    Attachment: FieldTermStack.patch

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Commented: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Digy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846538#action_12846538 ] 

Digy commented on LUCENENET-350:
--------------------------------

bq. FasterVectorHighlighter perhaps?
A new project? 
I am afraid of getting new projects  MoreFasterVectorHighlighter , MuchMoreFasterVectorHighlighter etc. :-)

DIGY

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Commented: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Digy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846071#action_12846071 ] 

Digy commented on LUCENENET-350:
--------------------------------

Hi Bianco,
First of all, could you add a apache licence to the file VectorHighlightMapper.cs?

Your work is very good and pass all tests, but it is not like just a simple bug fix and there is a divergence from FVH java. This makes life hard while making new versions' ports.

All Lucene.Net community!
Any idea about what  we should do?

DIGY



> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Bianco Veigel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bianco Veigel updated LUCENENET-350:
------------------------------------

    Attachment: VectorHighlightMapper.cs

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Bianco Veigel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bianco Veigel updated LUCENENET-350:
------------------------------------

    Attachment: FieldTermStack.patch

New Patch file with all changes in one.

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Bianco Veigel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bianco Veigel updated LUCENENET-350:
------------------------------------

    Attachment:     (was: FieldTermStack.patch)

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Commented: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Ben Martz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846073#action_12846073 ] 

Ben Martz commented on LUCENENET-350:
-------------------------------------

This is a valuable contribution given the performance increase, thank you Bianco!

FasterVectorHighlighter perhaps?

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Bianco Veigel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bianco Veigel updated LUCENENET-350:
------------------------------------

    Attachment: VectorHighlightMapper.cs
                FieldTermStack.patch

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Commented: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Digy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846528#action_12846528 ] 

Digy commented on LUCENENET-350:
--------------------------------

Hi Bianco,
I have troubles with applying the new patch. Can you provide a new clean patch for FieldTermStack? 

DIGY

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.patch, FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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


[jira] Updated: (LUCENENET-350) Performance enhancement in FastVectorHighlighter

Posted by "Bianco Veigel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bianco Veigel updated LUCENENET-350:
------------------------------------

    Attachment: FieldTermStack.cs

Removes a possible NUllReferenceException in FieldTermStack.cs

> Performance enhancement in FastVectorHighlighter
> ------------------------------------------------
>
>                 Key: LUCENENET-350
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-350
>             Project: Lucene.Net
>          Issue Type: Improvement
>            Reporter: Bianco Veigel
>         Attachments: FieldTermStack.cs, FieldTermStack.patch, VectorHighlightMapper.cs
>
>
> I've had some performace issues with highlighting large documents (>25MB plain text, > 11000 Terms per Field)
> This can be usual if your indexing i.e. log or trace files.
> Most of the time is spent loading the field value and stored TermVectors and Offets and itering over this List.
> I've build a TermVectorMapper which filters this List, by the searched terms, so that the time is reduces by approx. 30%

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