lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: LazyField retains temp char[] buffer
Date Sun, 08 Oct 2006 13:49:56 GMT
I think I was modeling it after IndexInput which does a similar thing  
when reading in String data to avoid having to reallocate the buffer  
unless it is necessary.  But you're right, in looking at it now,  
there really is no need for it since the LazyField is instantiated  
each time it is read in.

On Oct 7, 2006, at 12:29 PM, Yonik Seeley wrote:

> While reviewing some of the LazyField code in preparation for Solr  
> support,
> I noticed that the char[] used to read the String data is a member,
> and thus kept around after the data is read and a String constructed.
> It doesn't look like it serves any purpose... I assume this is just a
> little oversight?
> -Yonik
> Solr, the open-source Lucene  
> search server
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Grant Ingersoll
Sr. Software Engineer
Center for Natural Language Processing
Syracuse University
335 Hinds Hall
Syracuse, NY 13244

Voice: 315-443-5484
Skype: grant_ingersoll
Fax: 315-443-6886

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message