If you are looking for guidance around creating your own memory pool, the example in
this article[
^] showcases a simple way to implement a pool. When I read this article, I was surprised how simple and clean the author made it. Obviously, the implementation isn't 100% complete and shows that there are a lot of further operations that could be added, but this would be a great way to get started.