Less memory usage

This commit is contained in:
Him188 2020-02-22 13:48:26 +08:00
parent 0015b7bcc1
commit 801e3a68b1

View File

@ -13,7 +13,7 @@ import kotlinx.io.pool.DefaultPool
import kotlinx.io.pool.ObjectPool import kotlinx.io.pool.ObjectPool
internal const val DEFAULT_BYTE_ARRAY_POOL_SIZE = 256 internal const val DEFAULT_BYTE_ARRAY_POOL_SIZE = 256
internal const val DEFAULT_BYTE_ARRAY_SIZE = 81920 internal const val DEFAULT_BYTE_ARRAY_SIZE = 81920 / 2
val ByteArrayPool: ObjectPool<ByteArray> = ByteArrayPoolImpl val ByteArrayPool: ObjectPool<ByteArray> = ByteArrayPoolImpl