Import upstream version 8.2.3, md5 83c28dce12794bf1d7208512384472d9
Debian Janitor
4 years ago
|
0 |
8.2.3
|
|
1 |
|
|
2 |
- Array-based lists were not allocating a backing array even if the
|
|
3 |
required capacity was greater than the default capacity, violating
|
|
4 |
the contract. Thanks to 盏一 for reporting this bug.
|
|
5 |
|
|
6 |
- FastMultiByteArrayInputStream had since 2014 the wrong slice size
|
|
7 |
(1Ki instead of 1Gi). Thanks to Thibault Allançon for his detailed
|
|
8 |
reports, which dug out this old one.
|
|
9 |
|
0 | 10 |
8.2.2
|
1 | 11 |
|
2 | 12 |
- Fixed small bug in new lazy allocation scheme for array-based lists.
|
2 | 2 |
|
3 | 3 |
build.sysclasspath=ignore
|
4 | 4 |
|
5 | |
version=8.2.2
|
|
5 |
version=8.2.3
|
6 | 6 |
|
7 | 7 |
dist=dist
|
8 | 8 |
src=src
|
285 | 285 |
*/
|
286 | 286 |
SUPPRESS_WARNINGS_KEY_UNCHECKED
|
287 | 287 |
public void ensureCapacity(final int capacity) {
|
288 | |
if (capacity <= a.length || a == ARRAYS.DEFAULT_EMPTY_ARRAY) return;
|
|
288 |
if (capacity <= a.length || (a == ARRAYS.DEFAULT_EMPTY_ARRAY && capacity <= DEFAULT_INITIAL_CAPACITY)) return;
|
289 | 289 |
#if KEYS_PRIMITIVE
|
290 | 290 |
a = ARRAYS.ensureCapacity(a, capacity, size);
|
291 | 291 |
#else
|
2430 | 2430 |
*
|
2431 | 2431 |
* <p>This method implement an <em>indirect</em> sort. The elements of {@code perm} (which must
|
2432 | 2432 |
* be exactly the numbers in the interval {@code [0..perm.length)}) will be permuted so that
|
2433 | |
* {@code a[perm[i]] ≤ a[perm[i + 1]]}.
|
|
2433 |
* {@code a[perm[i]] ≤ a[perm[i + 1]]} or {@code a[perm[i]] == a[perm[i + 1]]} and {@code b[perm[i]] ≤ b[perm[i + 1]]}.
|
2434 | 2434 |
*
|
2435 | 2435 |
* <p>This implementation will allocate, in the stable case, a further support array as large as {@code perm} (note that the stable
|
2436 | 2436 |
* version is slightly faster).
|
|
2452 | 2452 |
*
|
2453 | 2453 |
* <p>This method implement an <em>indirect</em> sort. The elements of {@code perm} (which must
|
2454 | 2454 |
* be exactly the numbers in the interval {@code [0..perm.length)}) will be permuted so that
|
2455 | |
* {@code a[perm[i]] ≤ a[perm[i + 1]]}.
|
|
2455 |
* {@code a[perm[i]] ≤ a[perm[i + 1]]} or {@code a[perm[i]] == a[perm[i + 1]]} and {@code b[perm[i]] ≤ b[perm[i + 1]]}.
|
2456 | 2456 |
*
|
2457 | 2457 |
* <p>This implementation will allocate, in the stable case, a further support array as large as {@code perm} (note that the stable
|
2458 | 2458 |
* version is slightly faster).
|
3 | 3 |
<artifactId>fastutil</artifactId>
|
4 | 4 |
<packaging>jar</packaging>
|
5 | 5 |
<name>fastutil</name>
|
6 | |
<version>8.2.2</version>
|
|
6 |
<version>8.2.3</version>
|
7 | 7 |
<description>fastutil extends the Java Collections Framework by providing type-specific maps, sets, lists and priority queues with a small memory footprint and fast access and insertion; provides also big (64-bit) arrays, sets and lists, and fast, practical I/O classes for binary and text files.</description>
|
8 | 8 |
<url>http://fastutil.di.unimi.it/</url>
|
9 | 9 |
<licenses>
|
33 | 33 |
public class FastMultiByteArrayInputStream extends MeasurableInputStream implements RepositionableStream {
|
34 | 34 |
|
35 | 35 |
/** The number of bits of an array slice index. */
|
36 | |
public static final int SLICE_BITS = 10;
|
|
36 |
public static final int SLICE_BITS = 30;
|
37 | 37 |
|
38 | 38 |
/** The maximum length of an array slice. */
|
39 | 39 |
public static final int SLICE_SIZE = 1 << SLICE_BITS;
|