Changing vertex in facet

Is there a way to change a vertex index in a facet without deleting the former facet and inserting a new one ?
The goal is to weld duplicate vertices. So, if vertex with index 1 in facet B has the same coordinates as vertex with index 2 in facet B, I want to set the index 1 to that vertex. The only way I could find to do that is to delete facet B and insert a new one with a modified vertex list. In some case, it has to be done by the thousand. As facet add and delete operations are costly, I wonder whether there might be a more efficient way to ?
Comments
I think i would just create all the data, convert and insert as new one.