DirectArrayFloatList: don't synchronize while ensuring size

* This list does not work multithreaded. No need to synchronize it. Just slows it down
This commit is contained in:
Bixilon 2022-09-19 08:35:47 +02:00
parent c7e31c9698
commit 99977061ef
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -41,7 +41,6 @@ class DirectArrayFloatList(
private var output: FloatArray = FloatArray(0)
private var outputUpToDate = false
@Synchronized
override fun ensureSize(needed: Int) {
checkFinished()
if (limit - size >= needed) {