SocketPolicy.hh File Reference
Policy Framework public header.
More...
#include "SocketPolicy.ih"
#include "SocketPolicy.ct"
Go to the source code of this file.
Detailed Description
Policy Framework public header.
- Idea:
- Creating a new Socket will create 3 new instances (The handle, the body, the policy) of which 2 (argh) (body, policy) live on the heap. This is expensive. We should convert all the policy classes to singletons and assign the same instance to all socket bodies with the same policy. This would reduce the number of heap allocations per socket handle to one (which is already optimized using the pool_alloc_mixin)
Definition in file SocketPolicy.hh.
Define Documentation
#define |
HH_SENF_Socket_SocketPolicy_ 1 |
|
|
|
|
|