[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-21 Thread Paul Elschot (JIRA)
l be about 5 times bigger, so I'll need some more time. > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://issues.apache.org

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-21 Thread Michael McCandless (JIRA)
CENE-2213, which changes name & signature of ArrayUtil.getNextSize so be sure to update & merge before taking the patch further! > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > >

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-21 Thread Michael McCandless (JIRA)
hese additional places -- wanna work into the patch? > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://issues.apache.org/jira

[jira] Issue Comment Edited: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-20 Thread Paul Elschot (JIRA)
Util, 7 times or more. > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://issues.apache.org/jira/browse/LUCENE-2217 >

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-20 Thread Paul Elschot (JIRA)
472 FastCharStream 58 BufferedIndexInput 61, 157 UnicodeUtil, 7 times or more. > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://iss

[jira] Updated: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-20 Thread Michael McCandless (JIRA)
ArrayUtil.getNextSize when allocating the char[] in IndexInput. > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://issues.apache.org/jira/bro

[jira] Updated: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-20 Thread Paul Elschot (JIRA)
allocation in IndexInput. > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://issues.apache.org/jira/browse/LUCENE-2217 >

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-19 Thread Paul Elschot (JIRA)
hing, but I'll provide another patch that includes IndexInput for this. Would you have any idea about testcases for that? :) > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > >

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-19 Thread Michael McCandless (JIRA)
dn't IndexInput.bytes also be reallocated using ArrayUtils.getNextSize() +1 Wanna fold it into this patch? (And any others you find..?). > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > >

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-19 Thread Paul Elschot (JIRA)
s also be reallocated using ArrayUtils.getNextSize() ? The growth factor there is a hardcoded 1.25 . > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 >

[jira] Updated: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-17 Thread Paul Elschot (JIRA)
that fails the previous patch because of the missing reallocation. > SortedVIntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://issues.apache.

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-17 Thread Michael McCandless (JIRA)
and add a test case that fails when an allocation larger than the current initial size is needed That would be much appreciated ;) (I hit that too!). bq. The underlying problem is that ArrayUtils.getNextSize() does not have an argument for a minimum increase. Would it make sense to add that, t

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-16 Thread Paul Elschot (JIRA)
underlying problem is that ArrayUtils.getNextSize() does not have an argument for a minimum increase. Would it make sense to add that, too? The code there has some strange constants (3, 6 and 9) that could perhaps be dropped when an extra argument for a minimum increase is added. Looking at the co

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-16 Thread Michael McCandless (JIRA)
7;t quite right, I think? First, it just calls ArrayUtil.getNextSize w/o passing that to resizeBytes? Second, it needs to pass lastBytePos + MAX_BYTES_PER_INT as the arg to ArrayUtil.getNextSize (ie, that's the "min target size")? > SortedVIntList allocation should

[jira] Commented: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-16 Thread Michael McCandless (JIRA)
IntList allocation should use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://issues.apache.org/jira/browse/LUCENE-2217 > Project: Lucene - Java >

[jira] Assigned: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-16 Thread Michael McCandless (JIRA)
use ArrayUtils.getNextSize() > - > > Key: LUCENE-2217 > URL: https://issues.apache.org/jira/browse/LUCENE-2217 > Project: Lucene - Java > Issue Type: Improvement >

[jira] Updated: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-16 Thread Paul Elschot (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Elschot updated LUCENE-2217: - Priority: Trivial (was: Major) > SortedVIntList allocation should use ArrayUtils.getNextS

[jira] Updated: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-16 Thread Paul Elschot (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Elschot updated LUCENE-2217: - Attachment: LUCENE-2217.patch > SortedVIntList allocation should use ArrayUtils.getNextS

[jira] Created: (LUCENE-2217) SortedVIntList allocation should use ArrayUtils.getNextSize()

2010-01-16 Thread Paul Elschot (JIRA)
SortedVIntList allocation should use ArrayUtils.getNextSize() - Key: LUCENE-2217 URL: https://issues.apache.org/jira/browse/LUCENE-2217 Project: Lucene - Java Issue Type

Re: ArrayUtils.getNextSize

2009-04-09 Thread Shai Erera
Thanks Mike. On Thu, Apr 9, 2009 at 11:55 AM, Michael McCandless < luc...@mikemccandless.com> wrote: > On Wed, Apr 8, 2009 at 11:22 PM, Shai Erera wrote: > > Hi > > > > I used ArrayUtils.getNextSize recently to expand an array to a new size. > > When I read the

Re: ArrayUtils.getNextSize

2009-04-09 Thread Michael McCandless
On Wed, Apr 8, 2009 at 11:22 PM, Shai Erera wrote: > Hi > > I used ArrayUtils.getNextSize recently to expand an array to a new size. > When I read the documentation (the inline in the method), I saw this: > > "The growth pattern is:  0, 4, 8, 16, 25, 35, 46, 58, 72, 88, .

ArrayUtils.getNextSize

2009-04-08 Thread Shai Erera
Hi I used ArrayUtils.getNextSize recently to expand an array to a new size. When I read the documentation (the inline in the method), I saw this: "The growth pattern is: 0, 4, 8, 16, 25, 35, 46, 58, 72, 88, ..." I'm not sure if I'm misunderstanding the comment, or if t