From 51ad07d1fbffd41c758eba172aa77ebba3204924 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sun, 23 Feb 2025 10:31:05 -0800 Subject: Improve performance when compiling small shaders. (#6396) Improve performance when compiling small shaders. Avoid copying witness table entries that are not getting used during linking. Avoid copying auto-diff related decorations and derivative functions during linking, if the user modules doesn't use autodiff. Cache operator overload resolution results on global session, so each new Session doesn't need to repetitively run through overload resolution from scratch. --- source/slang/diff.meta.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/diff.meta.slang') diff --git a/source/slang/diff.meta.slang b/source/slang/diff.meta.slang index 790dfaa79..d32584db0 100644 --- a/source/slang/diff.meta.slang +++ b/source/slang/diff.meta.slang @@ -176,7 +176,7 @@ attribute_syntax [NoDiffThis] : NoDiffThisAttribute; // for internal use. // [__AutoDiffBuiltin] -export struct NullDifferential : IDifferentiable +struct NullDifferential : IDifferentiable { // for now, we'll use at least one field to make sure the type is non-empty uint dummy; -- cgit v1.2.3