Use std::vector<T>::reserve() to reserve memory
vec_{s2ws/ws2s}() => {s2ws/ws2s}()