From efdbb954c57b89362e390f955d45f90e59d66878 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 29 May 2024 18:01:11 -0700 Subject: Improve compile time performance. (#3857) * Handle type check cache update on extensions more gracefully. * Correctness fix. * Cache implcit cast overload resolution results. * Fix. * More optimizations. * Cache implicit default ctor resolution. * Disable redundancy removal. * Fix. * Fix test. * Fix. * Correctness fix. * Fix. * Fix, * Fix test. * Small tweak. --- source/slang/slang-artifact-output-util.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-artifact-output-util.cpp') diff --git a/source/slang/slang-artifact-output-util.cpp b/source/slang/slang-artifact-output-util.cpp index 2c560e236..3cb0e6c93 100644 --- a/source/slang/slang-artifact-output-util.cpp +++ b/source/slang/slang-artifact-output-util.cpp @@ -58,9 +58,11 @@ namespace Slang } return SLANG_FAIL; } - + auto downstreamStartTime = std::chrono::high_resolution_clock::now(); SLANG_RETURN_ON_FAIL(compiler->convert(artifact, assemblyDesc, outArtifact)); - + auto downstreamElapsedTime = + (std::chrono::high_resolution_clock::now() - downstreamStartTime).count() * 0.000000001; + session->addDownstreamCompileTime(downstreamElapsedTime); return SLANG_OK; } -- cgit v1.2.3