update: replace some clear / push-back by resize( 0 ) / push_back to avoid redundat allocations.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>