* Releases the given array back to the array pool. * * @private * @param {Array} [array] The array to release.
(array)
| 35501 | * @param {Array} [array] The array to release. |
| 35502 | */ |
| 35503 | function releaseArray(array) { |
| 35504 | array.length = 0; |
| 35505 | if (arrayPool.length < maxPoolSize) { |
| 35506 | arrayPool.push(array); |
| 35507 | } |
| 35508 | } |
| 35509 | |
| 35510 | /** |
| 35511 | * Releases the given object back to the object pool. |
no outgoing calls
no test coverage detected