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
+2 -2
View File
@@ -48,7 +48,7 @@ static const int TABLE_MIN_NODE_COUNT = 32; // If < 32 instructions, not worth
class TableVisitor;
class TableSimulateVisitor : public SimulateVisitor {
class TableSimulateVisitor final : public SimulateVisitor {
// MEMBERS
TableVisitor* m_cbthis; ///< Class for callback
@@ -65,7 +65,7 @@ public:
//######################################################################
// Table class functions
class TableVisitor : public AstNVisitor {
class TableVisitor final : public AstNVisitor {
private:
// NODE STATE
// Cleared on each always/assignw