I am currently using the STL vector file container template to return and receive connections.
1) on get, the connection is returned and "erase ()" d from the pool vector.
2) upon release, the connection is returned to the pool through "push_back ()".
This can be very difficult if the pool is often used. So my question is: is there a way to improve performance here by switching to a different data structure?
c ++ stl containers connection-pooling
Myz
source share