Ticket Q382256
Visible to All Users

Poor load performance of controls

created 13 years ago

Basically, we use DXDocking as a tabbed environment along with the ribbon control. Clicking a button in the ribbon control initialises a new view/control and adds it to a tab in the dock.
The issue is that following the button click it appears to take a very long time to show the new control (up to 5s depending on machine speed). However, on subsequent clicks, the new control will open very quickly (<1s) (each click creates a new control(), so it isn't reusing anything in my code).
From my reading on Stackoverflow and other places, this sounds like an issue with loading the theme files and then caching them.
I found a possible solution here: http://www.devexpress.com/Support/Center/p/B201967.aspx, but this is pretty nasty (it involves having a hidden window loaded with dx controls loaded at startup that can force the system to start caching the theme files). It also didn't really seem to achieve much for me.
My docking environment is a modular system where modules are loaded on startup using MEF. Ideally I would want to inspect each module on startup for a list of dx controls that it uses and then silently start pre-caching the themes for them on a background thread.
Any ideas on how I could achieve something like this?

Show previous comments (2)
DevExpress Support Team 13 years ago

    Hello David,
    Thank you for your feedback. We have researched this issue within other threads and have not found a way to load all necessary controls/editors' visual elements without showing them. It looks like WPF does not provide such a feature. Components should be addressed for showing on the screen to load themselves completely. If you have an idea, feel free to post it here.
    Thank you, Marina

      Thanks for your help.
      I'll post on some forums and reply here if I get anything back.

      DevExpress Support Team 13 years ago

        David,
        Thank you for your feedback. You are free to reactivate this issue if you find something interesting.
        Thank you, Marina

        Answers approved by DevExpress Support

        created 2 years ago

        Hello,

        We decided to revisit the records related to the startup performance in our knowledge base. In the latest version (currently, it is v23.1), we recommend using tips from the following help topic to improve the startup performance in a general case:

        Support, Debug, and Troubleshooting > Reduce the Application Launch Time

        Additionally, please refer to the following blog post in our WPF Team Blog:

        9 Tips to Reduce WPF App Startup Time

        In v23.1, we also further improved the startup performance for DevExpress controls and introduced a new set of lightweight themes. See what's new in the corresponding post:

        What's New in v23.1

        Please feel free to create a separate ticket if you encounter a performance issue with our components.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.