Usually small vectors are faster than list even though insert/remove theoretically cost more, because they tend to end up within one or a few cachelines instead of spread all over. That said, it probably doesn't really matter here.