Skip to content

Commit

Permalink
Speeding things up
Browse files Browse the repository at this point in the history
  • Loading branch information
SCell555 committed Nov 6, 2021
1 parent 94da315 commit aabfc1e
Show file tree
Hide file tree
Showing 9 changed files with 3,106 additions and 953 deletions.
299 changes: 133 additions & 166 deletions Handler.cpp

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions IArchive.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace NArcInfoFlags
const UInt32 kPreArc = 1 << 9; // such archive can be stored before real archive (like SFX stub)
const UInt32 kSymLinks = 1 << 10; // the handler supports symbolic links
const UInt32 kHardLinks = 1 << 11; // the handler supports hard links
const UInt32 kByExtOnlyOpen = 1 << 12; // call handler only if file extension matches
}

namespace NArchive
Expand Down
26 changes: 13 additions & 13 deletions MyString.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,21 +217,21 @@ bool StringsAreEqualNoCase_Ascii(const wchar_t *s1, const wchar_t *s2) throw();


#define FORBID_STRING_OPS_2(cls, t) \
void Find(t) const; \
void Find(t, unsigned startIndex) const; \
void ReverseFind(t) const; \
void InsertAtFront(t); \
void RemoveChar(t); \
void Replace(t, t); \
void Find(t) const = delete; \
void Find(t, unsigned startIndex) const = delete; \
void ReverseFind(t) const = delete; \
void InsertAtFront(t) = delete; \
void RemoveChar(t) = delete; \
void Replace(t, t) = delete; \

#define FORBID_STRING_OPS(cls, t) \
explicit cls(t); \
explicit cls(const t *); \
cls &operator=(t); \
cls &operator=(const t *); \
cls &operator+=(t); \
cls &operator+=(const t *); \
FORBID_STRING_OPS_2(cls, t); \
explicit cls(t) = delete; \
explicit cls(const t *) = delete; \
cls &operator=(t) = delete; \
cls &operator=(const t *) = delete; \
cls &operator+=(t) = delete; \
cls &operator+=(const t *) = delete; \
FORBID_STRING_OPS_2(cls, t) \

/*
cls &operator+(t); \
Expand Down
13 changes: 8 additions & 5 deletions VpkHandler.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
Expand Down Expand Up @@ -96,6 +96,7 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<LanguageStandard>stdcpplatest</LanguageStandard>
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down Expand Up @@ -137,6 +138,7 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<LanguageStandard>stdcpplatest</LanguageStandard>
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -158,6 +160,7 @@
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<LanguageStandard>stdcpplatest</LanguageStandard>
<DebugInformationFormat>None</DebugInformationFormat>
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down Expand Up @@ -189,7 +192,6 @@
<ClInclude Include="CopyCoder.h" />
<ClInclude Include="CpuArch.h" />
<ClInclude Include="Defs.h" />
<ClInclude Include="flat_map.hpp" />
<ClInclude Include="IArchive.h" />
<ClInclude Include="ICoder.h" />
<ClInclude Include="IDecl.h" />
Expand All @@ -212,6 +214,7 @@
<ClInclude Include="PropVariant.h" />
<ClInclude Include="RegisterArc.h" />
<ClInclude Include="RegisterCodec.h" />
<ClInclude Include="robin_hood.h" />
<ClInclude Include="StreamUtils.h" />
<ClInclude Include="StringConvert.h" />
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions VpkHandler.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@
<ClInclude Include="Defs.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="flat_map.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="IArchive.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down Expand Up @@ -140,6 +137,9 @@
<ClInclude Include="RegisterCodec.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="robin_hood.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="StringConvert.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down
Loading

0 comments on commit aabfc1e

Please sign in to comment.