Speed up CDC reset on large netlists; userClearVertices too slow

This commit is contained in:
Wilson Snyder
2010-01-08 11:12:16 -05:00
parent 89234bcd42
commit d903855aa3
2 changed files with 21 additions and 14 deletions
+2 -1
View File
@@ -198,7 +198,8 @@ void V3Graph::clear() {
void V3Graph::userClearVertices() {
// Clear user() in all of tree
// We may use the userCnt trick in V3Ast later... (but gblCnt would be
// in V3Graph instead of static) For now we don't call this often, and
// in V3Graph instead of static - which has the complication of finding
// the graph pointer given a vertex.) For now we don't call this often, and
// the extra code on each read of user() would probably slow things
// down more than help.
for (V3GraphVertex* vertexp = verticesBeginp(); vertexp; vertexp=vertexp->verticesNextp()) {