mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Internals: Use and enforce class final for ~5% performance boost.
This commit is contained in:
+2
-2
@@ -119,7 +119,7 @@ public:
|
||||
return vertices;
|
||||
}
|
||||
|
||||
class EdgeCmp {
|
||||
class EdgeCmp final {
|
||||
// Provides a deterministic compare for outgoing V3GraphEdge's
|
||||
// to be used in Prim's algorithm below. Also used in the
|
||||
// perfectMatching() routine.
|
||||
@@ -494,7 +494,7 @@ void V3TSP::tspSort(const V3TSP::StateVec& states, V3TSP::StateVec* resultp) {
|
||||
//######################################################################
|
||||
// Self Tests
|
||||
|
||||
class TspTestState : public V3TSP::TspStateBase {
|
||||
class TspTestState final : public V3TSP::TspStateBase {
|
||||
public:
|
||||
TspTestState(unsigned xpos, unsigned ypos)
|
||||
: m_xpos{xpos}
|
||||
|
||||
Reference in New Issue
Block a user