EsotericSoftware / kryo

Java binary serialization and cloning: fast, efficient, automatic
BSD 3-Clause "New" or "Revised" License
6.21k stars 828 forks source link

Use Pool to ensure thread safety #1147

Closed chen990627 closed 3 weeks ago

chen990627 commented 3 weeks ago

1.What is the typical setting for the maximumCapacity property of the Kryo object pool? 2.What is the typical setting for the maximumCapacity property of the Output object pool? 3.What is the typical setting for the maximumCapacity property of the Input object pool? image

theigl commented 3 weeks ago

As all pool sizing, this depends on your use-case: