Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

DevExpress DLLs and XSharp.MacroCompiler.Symbols 21 Mar 2022 12:35 #22011

  • VR
  • VR's Avatar
  • Topic Author


  • Posts: 84
  • 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

    Please Log in or Create an account to join the conversation.

    DevExpress DLLs and XSharp.MacroCompiler.Symbols 21 Mar 2022 14:50 #22014

    • robert
    • robert's Avatar


  • Posts: 3293
  • 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

    Please Log in or Create an account to join the conversation.

    DevExpress DLLs and XSharp.MacroCompiler.Symbols 21 Mar 2022 14:58 #22015

    • VR
    • VR's Avatar
    • Topic Author


  • Posts: 84
  • Please Log in or Create an account to join the conversation.

    • Page:
    • 1