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
+4 -4
View File
@@ -62,9 +62,9 @@ constexpr int INFILTER_CACHE_MAX = (64 * 1024); // Maximum bytes to cache if sa
//######################################################################
// V3File Internal state
class V3FileDependImp {
class V3FileDependImp final {
// TYPES
class DependFile {
class DependFile final {
// A single file
bool m_target; // True if write, else read
bool m_exists = true;
@@ -327,7 +327,7 @@ void V3File::createMakeDir() {
//######################################################################
// VInFilterImp
class VInFilterImp {
class VInFilterImp final {
typedef std::map<const string, string> FileContentsMap;
typedef VInFilter::StrList StrList;
@@ -949,7 +949,7 @@ void V3OutCFile::putsGuard() {
//######################################################################
// VIdProtect
class VIdProtectImp {
class VIdProtectImp final {
// MEMBERS
typedef std::map<const string, string> IdMap;
IdMap m_nameMap; // Map of old name into new name