3 Replies Latest reply on Mar 24, 2014 7:23 PM by csa

    ListWidget Performance

    clewis

      Hi,

       

      We're developing an application that makes use of the ListWidget and in one particular case, the list can contain about 2000 rows. Although the retrieval seems to be reasonable, the building of the Widget causes multiple script timeouts in Firefox and ultimately takes about 1 minute to render. Is there another way to approach this or something similar to a GWT CellTable with an AsyncDataProvider? The Errai UI is really nice and we'd like to find a way to make the ListWidget perform well in this use case.

       

      Thanks,

       

      Carl

        • 1. Re: ListWidget Performance
          csa

          Hi Carl,

           

          We don't currently make use of GWT's CellTable in Errai UI. It seems we need lazy (re-)loading and pagination support in ListWidget.

           

          Do you see the performance issue in both DevMode and production mode?

           

          We also have an unmerged pull request (still missing a test) using IndexedPanel (https://github.com/errai/errai/pull/82). IndexedPanel will improve the performance when adding/removing items but probably not when initially displaying a big number of rows.

           

          Are you interested in providing a solution and sending us a pull request for this?

           

          Cheers,

          Christian

          • 2. Re: ListWidget Performance
            clewis

            Hi Christian,

             

            Yes, the performance issue is in production as well.

             

            We can try the IndexedPanel once it's available, but as you mentioned, it probably won't help much on the initial display of the table.

             

            We can take a look at adding pagination support to the ListWidget and sending a pull request.

             

            Thanks,

             

            Carl

            • 3. Re: ListWidget Performance
              csa

              Thanks, Carl. That'd be great!