MCPcopy Index your code
hub / github.com/benfry/processing4 / crop

Method crop

core/src/processing/data/LongList.java:128–132  ·  view source on GitHub ↗

Improve efficiency by removing allocated but unused entries from the internal array used to store the data. Set to private, though it could be useful to have this public if lists are frequently making drastic size changes (from very large to very small).

()

Source from the content-addressed store, hash-verified

126 * size changes (from very large to very small).
127 */
128 private void crop() {
129 if (count != data.length) {
130 data = PApplet.subset(data, 0, count);
131 }
132 }
133
134
135 /**

Callers 2

LongListMethod · 0.95
valuesMethod · 0.95

Calls 1

subsetMethod · 0.95

Tested by

no test coverage detected