[ENet-discuss] boost.pool & enet

Zola looseonthestreet at gmail.com
Sat Jul 22 12:40:45 PDT 2006


Hello,

I'm examining enet as a base of network code for a project which will have
potentially hundreds of users in concentrated areas at certain times; I have
one concern here- fragmentation, and the servers should be able to keep
long-running uptimes. I forsee a barrage of tiny allocations and frees
happening, and I'm concerned about fragmentation.

A pool allocator might solve this problem.
Has anyone tried, or been successful in using enet with the boost pool
allocator?
It can be found here: http://www.boost.org/libs/pool/doc/index.html

As stated:

"Pools are generally used when there is a lot of allocation and deallocation
of small objects."

"Using Pools gives you more control over how memory is used in your program.
For example, you could have a situation where you want to allocate a bunch
of small objects at one point, and then reach a point in your program where
none of them are needed any more. Using pool interfaces, you can choose to
run their destructors or just drop them off into oblivion; the pool
interface will guarantee that there are no system memory leaks."

Has anyone had experiences with this combination of enet and pool
allocators, or boost's pool?
And, is enet suited to be plugged into such a system?

- Zola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cubik.org/pipermail/enet-discuss/attachments/20060722/813961ec/attachment.htm 


More information about the ENet-discuss mailing list