Search This Blog

Wednesday, February 7, 2018

Faster opening of a DetailView with lots of items - XAF WinForms v17.2.6

How big is the DetailView in the question? 
Well, in the T581043 ticket's test project, there are 250 editors in the detail form layout. Big enough, huh?

FreeImages.com/Marcello eM


How much we could speed it up? 
On our powerful test machines, the time to open DetailView with just plain editors (no layout groups or tabs) has dropped from 3 seconds to almost 1. In real world applications, time to open a detail view depends on the application configuration (controllers, data, collection properties, calculated fields) and deployment specifics.

If you cannot wait for the next maintenance update (v17.2.6), install this night buildDevExpressNETComponents-17.2.exe

My team and I would be interested in hearing whether it is something you and your clients will notice too or if there are any problems with that new build. Thanks in advance.

Regards,
Dennis

P.S. If you already migrated to XAF v17.2, make sure you set XafApplication > OptimizedControllersCreation to True as well (read the prerequisites in the docs, first). The How to measure and improve the application's performance article may also help your app perform faster (magically, just after looking at it😜), so check it as well in case of problems in other scenarios.

3 comments:

  1. Hi Dennis, I have tested it and it really improves complex detail views opening in win application. But in a web application opening in edit mode a detail view is terribly slow. Is it by the nature of a nightbuild and still pending to solve?

    ReplyDelete
    Replies
    1. Thanks for testing! This improvement was only for WinForms apps. To determine the cause of this behavior in your Web app, I suggest you get started with performance profiling: https://www.devexpress.com/Support/Center/Question/Details/T148978/how-to-measure-and-improve-the-application-s-performance

      Should your profiling results show problems in DevExpress routines, we will be more than happy to review them in the Support Center, as always.

      Delete