DevExpress DLLs and XSharp.MacroCompiler.Symbols

This forum is meant for questions and discussions about the X# language and tools
Post Reply
VR
Posts: 101
Joined: Sun Aug 23, 2020 3:07 pm
Location: Italy

DevExpress DLLs and XSharp.MacroCompiler.Symbols

Post 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
User avatar
robert
Posts: 4290
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

DevExpress DLLs and XSharp.MacroCompiler.Symbols

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
VR
Posts: 101
Joined: Sun Aug 23, 2020 3:07 pm
Location: Italy

DevExpress DLLs and XSharp.MacroCompiler.Symbols

Post by VR »

Post Reply