336905fafe34490c4bd4eef25698887a54cd2d18
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().
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.
Languages
Java
99.9%
Shell
0.1%