2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Huge compile performance refactor

This commit is contained in:
Jack Andersen
2017-12-28 21:56:31 -10:00
parent bc055b9126
commit aae0dc56b7
53 changed files with 1523 additions and 1729 deletions

View File

@@ -1,7 +1,7 @@
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <cerrno>
#include <cstdio>
#include <cstring>
#include <system_error>
#if _WIN32
@@ -10,12 +10,10 @@
#endif
#include "hecl/Database.hpp"
#include "hecl/Blender/BlenderConnection.hpp"
#include "hecl/Blender/Connection.hpp"
#include "hecl/ClientProcess.hpp"
namespace hecl
{
namespace Database
namespace hecl::Database
{
logvisor::Module LogModule("hecl::Database");
@@ -397,7 +395,7 @@ static void VisitFile(const ProjectPath& path, bool force, bool fast,
{
for (auto& spec : specInsts)
{
if (spec->canCook(path, hecl::SharedBlenderToken))
if (spec->canCook(path, hecl::blender::SharedBlenderToken))
{
if (cp)
{
@@ -406,7 +404,7 @@ static void VisitFile(const ProjectPath& path, bool force, bool fast,
else
{
const DataSpecEntry* override = spec->overrideDataSpec(path, spec->getDataSpecEntry(),
hecl::SharedBlenderToken);
hecl::blender::SharedBlenderToken);
if (!override)
continue;
ProjectPath cooked = path.getCookedPath(*override);
@@ -416,7 +414,7 @@ static void VisitFile(const ProjectPath& path, bool force, bool fast,
path.getModtime() > cooked.getModtime())
{
progress.reportFile(override);
spec->doCook(path, cooked, fast, hecl::SharedBlenderToken,
spec->doCook(path, cooked, fast, hecl::blender::SharedBlenderToken,
[&](const SystemChar* extra)
{
progress.reportFile(override, extra);
@@ -539,7 +537,7 @@ bool Project::packagePath(const ProjectPath& path, FProgress progress, bool fast
if (m_lastPackageSpec->canPackage(path))
{
m_lastPackageSpec->doPackage(path, specEntry, fast, hecl::SharedBlenderToken, progress, cp);
m_lastPackageSpec->doPackage(path, specEntry, fast, hecl::blender::SharedBlenderToken, progress, cp);
return true;
}
@@ -579,4 +577,3 @@ const ProjectPath* Project::lookupBridgePath(uint64_t id) const
}
}
}