[jira] Created: (LUCENE-1259) Token.clone() copies termBuffer - unneccessary in most cases

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (LUCENE-1259) Token.clone() copies termBuffer - unneccessary in most cases

JIRA jira@apache.org
Token.clone() copies termBuffer - unneccessary in most cases
------------------------------------------------------------

                 Key: LUCENE-1259
                 URL: https://issues.apache.org/jira/browse/LUCENE-1259
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Analysis
            Reporter: Thomas Peuss
            Priority: Minor
         Attachments: LUCENE-1259.patch

The method Token.clone() copies the termBuffer. This is OK for the _clone()_-method (it works according to what we expect from _clone()_). But in most cases the termBuffer is set directly after cloning. This is an unnecessary copy step we can avoid. This patch adds a new method called _cloneWithoutTermBuffer()_.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (LUCENE-1259) Token.clone() copies termBuffer - unneccessary in most cases

JIRA jira@apache.org

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

Thomas Peuss updated LUCENE-1259:
---------------------------------

    Attachment: LUCENE-1259.patch

> Token.clone() copies termBuffer - unneccessary in most cases
> ------------------------------------------------------------
>
>                 Key: LUCENE-1259
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1259
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Analysis
>            Reporter: Thomas Peuss
>            Priority: Minor
>         Attachments: LUCENE-1259.patch
>
>
> The method Token.clone() copies the termBuffer. This is OK for the _clone()_-method (it works according to what we expect from _clone()_). But in most cases the termBuffer is set directly after cloning. This is an unnecessary copy step we can avoid. This patch adds a new method called _cloneWithoutTermBuffer()_.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]