Internals: Use and enforce class final for ~5% performance boost.

This commit is contained in:
Wilson Snyder
2020-11-18 21:32:16 -05:00
parent c0888c1b0f
commit b6ded59c2b
224 changed files with 976 additions and 949 deletions
+3 -3
View File
@@ -36,7 +36,7 @@
//######################################################################
class BeginState {
class BeginState final {
private:
// NODE STATE
// Entire netlist:
@@ -56,7 +56,7 @@ public:
//######################################################################
class BeginVisitor : public AstNVisitor {
class BeginVisitor final : public AstNVisitor {
private:
// STATE
BeginState* m_statep; // Current global state
@@ -247,7 +247,7 @@ public:
//######################################################################
class BeginRelinkVisitor : public AstNVisitor {
class BeginRelinkVisitor final : public AstNVisitor {
// Replace tasks with new pointer
private:
// NODE STATE