Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Listgrid performance

    Hi we are build
    SmartClient Version: SC_SNAPSHOT-2011-04-14/PowerEdition Deployment (built 2011-04-14)

    I am having peformance issues with the listgrid. When listgrid.setsavelocaly is set to true their is a noticeable delay from when the user has finished entering data into a cell and has pressed the down arrow to when focus is set to the next cell(approx. 400ms). I have also noticed that the keyboard events get lost. For example if the column in the grid had all 0 and the user constantly alternates between 9 and down arrow, often the down arrow event will be lost and in a cell you will get multiple 9 values.

    What I did to try and test this was, on the server side I had overridden execute and if and operation of type update/add/remove came in I would setSuccess to true and return.

    After I did this their was alot of traffic to the server but the listgrid performance increased and the keyboard event issues went away.

    Is their anything that can be done about this or am I doing something incorrectly.

    #2
    Try taking a sample and adding just this one setting. If there's no performance issue (there shouldn't be) investigate what else is set in your particular grid that could cause the problem. Good candidates are event handlers and similar code that may be running more often than you expect.

    Comment


      #3
      you can see the keyboard events being dropped in this sample.

      http://www.smartclient.com/#massUpdate

      set saveLocally to true and autosaveedits to true;

      Comment


        #4
        From a quick test, with those settings changes, this sample responds very quickly in FF4 and IE8 and does not drop keystrokes when rapidly transitioning between rows and typing characters.

        Please let us know if you can reproduce the behavior, and be very specific about how it is done.

        Comment


          #5
          I am using FF4, windows xp and my cpu is a Core DUO running at 1.86. I was alternating between 5 and down arrow.I was entering about 6 keystrokes a second. As you can see from the attached snapshot after the 3rd row the next 7 down arrows were dropped and all the keystrokes were entered into 1 cell.

          Does this help?


          Here is tbe javascript
          Code:
          isc.ListGrid.create({
              ID: "countryList",
              width:500, height:224, alternateRecordStyles:true, cellHeight:22,
              // use server-side dataSource so edits are retained across page transitions
              dataSource: countryDS,
              // display a subset of fields from the datasource
              fields:[
                  {name:"countryName"},
                  {name:"continent"},
                  {name:"member_g8"},
                  {name:"population", 
                   formatCellValue:"isc.Format.toUSString(parseInt(value))"},
                  {name:"independence"}
              ],
              autoFetchData: true,
              canEdit: true,
              editEvent: "click",
              listEndEditAction: "next",
              autoSaveEdits: true,
          saveLocally: true
          })
          Attached Files

          Comment


            #6
            I've attached another example. I was alternating 4 and down arrow.


            http://www.smartclient.com/#fetchOperation
            Attached Files

            Comment


              #7
              We can get the described effect to happen very rarely, by hitting keys as fast as possible - rarely enough that we're not completely sure whether it's just user error (eg hitting 4 twice without hitting down arrow in between). Is this something that's affecting actual users?

              Comment


                #8
                Note, on the assumption that this is easier to reproduce on a slower computer, it would be invalid to test with any developer-specific tools involved:

                1. in hosted mode
                2. with Firebug or any other debug tool active including other developer-oriented Firefox extensions
                3. with the Developer Console open
                4. with any logging enabled (with the Developer Console open or closed)

                Comment


                  #9
                  I will try and run this on a clean install of XP and firefox

                  Comment


                    #10
                    I tried it on Mac OSX running an Core i7 processor with FF4 and was able to reproduce the effects. I ran it on a XP with centrino Duo running at 2.1ghz and it ran ok.
                    Last edited by Rdamario; 4 May 2011, 21:26.

                    Comment


                      #11
                      If this is a rare effect in MacOSX (which is all we've been able to see) the question is still whether this is affecting real usage?

                      Comment


                        #12
                        I tried it on the Mac OSX to try different computer configurations. I have tried it on a XP laptop with centrino duo 2.1 and it seemed to work.

                        We are are at the final stages of development for our application and started doing user acceptance. The keyboard event dropping issue frustrated the user when they were entering values into the grid. Our average computer configuration is a Core 2 running at 2.5ghz.

                        Comment


                          #13
                          You reported 400ms delays previously - that would definitely annoy the user and that seems like the issue you actually need to fix, but you haven't returned to that issue.

                          Comment


                            #14
                            I will setup a sample to send to you.

                            Comment


                              #15
                              I got around the savelocally performance I was experiencing by disabling savelocally and autosaveedits. I then switched to cellexithandler instead of oncellsave events to do my work.

                              I also found out what was causing the key down to be dropped on our PCs. I was using FF4 when I switched to FF3.6.17 my issues went away. Do you know of any issues with FF4 and the grids. I also tried the latest chrome and it too was dropping the down arrow.

                              In a previous post you said that you tested using FF4 can you tell me what your PC Config is.
                              Last edited by Rdamario; 4 May 2011, 21:28.

                              Comment

                              Working...
                              X