lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Peuss (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1259) Token.clone() copies termBuffer - unneccessary in most cases
Date Mon, 07 Apr 2008 13:51:25 GMT

     [ 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


Mime
View raw message