Optimization 1: vector->set, avoiding duplicated splitting