I am currently working on a simple UDP server for a game. I have already implemented multithreading with the help of a ThreadPoolExecutor
. When reading about how to maximize performance I stumbled across ObjectPooling
. After some reading I have been left with 3 questions:
1) Will a server program be able to take advantage of an ObjectPool?
2) Which "Objects" should be pooled and which should not?
3) How to create a simple ObjectPool?