Buckets:
ktongue/docker_container / simsite /frontend /node_modules /three-mesh-bvh /src /utils /PrimitivePool.js
| export class PrimitivePool { | |
| constructor( getNewPrimitive ) { | |
| this._getNewPrimitive = getNewPrimitive; | |
| this._primitives = []; | |
| } | |
| getPrimitive() { | |
| const primitives = this._primitives; | |
| if ( primitives.length === 0 ) { | |
| return this._getNewPrimitive(); | |
| } else { | |
| return primitives.pop(); | |
| } | |
| } | |
| releasePrimitive( primitive ) { | |
| this._primitives.push( primitive ); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 397 Bytes
- Xet hash:
- 782978c5b08846e572d8a627ca5ac54072ec3d6edb5951b342b49ae19ff93ef0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.