xsharp.eu • DevExpress DLLs and XSharp.MacroCompiler.Symbols
Page 1 of 1

DevExpress DLLs and XSharp.MacroCompiler.Symbols

Posted: Mon Mar 21, 2022 11:35 am
by VR
Hello

after referencing the DLLs from the DevExpress Winforms library I noticed, that the memory consumption was notably higher. After investigating that fact in the Diagnostics Tools I saw, that the number of items in the Dictionary<string, XSharp.MacroCompiler.Symbol> increased from 13.000 to 40.000 items. I assume, that the macro compiler indexed all the types present in the DevExpress DLLs.

Is there a way to tell the MacroCompiler to not index certain DLLs?

kind regards

Volkmar

DevExpress DLLs and XSharp.MacroCompiler.Symbols

Posted: Mon Mar 21, 2022 1:50 pm
by robert
Volkmar,

You are right. The macro compiler creates a cache of typename - typesymbol pairs.
It does this the first time the macro compiler is loaded and it also does this when new assemblies are loaded.
At this moment there is no option to exclude certain DLLs.
We could probably add an event or a callback mechanism that would allow you to exclude certain DLLs.
Can you add an enhancement request for this in our Github repo ?

Robert

DevExpress DLLs and XSharp.MacroCompiler.Symbols

Posted: Mon Mar 21, 2022 1:58 pm
by VR