mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-24 02:40:13 +08:00
Less memory usage
This commit is contained in:
parent
0015b7bcc1
commit
801e3a68b1
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user