Andreas Huber 336905fafe clear() not longer frees memory it just empties the list
Use case: The list is used as a buffer, that is re-used and in
each iteration the list is cleared.

Now that clear() does not replace the data array there is no
garbage collection and we do not have to allocated one or
several new arrays in the next iteration.
You can still free the associated memory by calling clear() + trim().
2018-08-17 19:38:30 +02:00
2018-08-17 18:45:15 +02:00
2017-11-10 10:09:53 +01:00
2017-09-26 19:30:58 +02:00
2017-02-04 09:10:28 +01:00
2018-05-19 19:50:19 +02:00

Java collections for primitives (currently only int) released under MIT license.

IntList is an implementation of a list to store primitive integers. You can add, insert, replace and remove elements in the list. The ints are stored in an int array and the class takes care of growing the array as needed. You can trim the list to reduce the memory overhead.

Description
No description provided
Readme MIT 667 KiB
Languages
Java 99.9%
Shell 0.1%