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
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()
> -
>
>
hese additional places -- wanna work into the patch?
> SortedVIntList allocation should use ArrayUtils.getNextSize()
> -
>
> Key: LUCENE-2217
> URL: https://issues.apache.org/jira
Util, 7 times or more.
> SortedVIntList allocation should use ArrayUtils.getNextSize()
> -
>
> Key: LUCENE-2217
> URL: https://issues.apache.org/jira/browse/LUCENE-2217
>
472
FastCharStream 58
BufferedIndexInput 61, 157
UnicodeUtil, 7 times or more.
> SortedVIntList allocation should use ArrayUtils.getNextSize()
> -
>
> Key: LUCENE-2217
> URL: https://iss
ArrayUtil.getNextSize when
allocating the char[] in IndexInput.
> SortedVIntList allocation should use ArrayUtils.getNextSize()
> -
>
> Key: LUCENE-2217
> URL: https://issues.apache.org/jira/bro
allocation in
IndexInput.
> SortedVIntList allocation should use ArrayUtils.getNextSize()
> -
>
> Key: LUCENE-2217
> URL: https://issues.apache.org/jira/browse/LUCENE-2217
>
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()
> -
>
>
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()
> -
>
>
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
>
that fails the
previous patch because of the missing reallocation.
> SortedVIntList allocation should use ArrayUtils.getNextSize()
> -
>
> Key: LUCENE-2217
> URL: https://issues.apache.
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
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
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
IntList allocation should use ArrayUtils.getNextSize()
> -
>
> Key: LUCENE-2217
> URL: https://issues.apache.org/jira/browse/LUCENE-2217
> Project: Lucene - Java
>
use ArrayUtils.getNextSize()
> -
>
> Key: LUCENE-2217
> URL: https://issues.apache.org/jira/browse/LUCENE-2217
> Project: Lucene - Java
> Issue Type: Improvement
>
[
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
[
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
SortedVIntList allocation should use ArrayUtils.getNextSize()
-
Key: LUCENE-2217
URL: https://issues.apache.org/jira/browse/LUCENE-2217
Project: Lucene - Java
Issue Type
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
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, .
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
22 matches
Mail list logo