It's very easy to use the STL containers in a poor way causing lots of allocations and deallocations and copying.
If you show us the code we might be able to show you better ways.