You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Thomas Peuss (JIRA)" <ji...@apache.org> on 2008/04/07 15:51:25 UTC
[jira] Created: (LUCENE-1259) Token.clone() copies termBuffer -
unneccessary in most cases
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1259) Token.clone() copies termBuffer -
unneccessary in most cases
Posted by "Thomas Peuss (JIRA)" <ji...@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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org