Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-522

When scrolling down to the last row, the rendering performance is bad

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.10.0
    • 5.8.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. run the attached example
      2. scroll down to the last row
      3. click "Populate Data"

      Current Result

      it takes 9s to complete the rendering

      Expected Result

      should take shorter

      Debug Information

      • if I don't do the step 2, the rendering time is very short
      • check

        	_createCellsIfCached: function (dir, size, jump, vr0) {
        ...
        		switch (dir) {
        		case 'south':
        			var tRow = Math.max(cr.bottom + 1, sheet.tp.block ? sheet.tp.block.range.bottom + 1 : 0),
        				lCol = cr.left,
        				rCol = cr.right,
        				bRow = tRow + size - 1,
        				cache = false;
        			bRow = Math.min(bRow, sheet.maxRows - 1);
        			if (ar.containsRange(tRow, lCol, bRow, rCol)) {
        				this.create_(dir, tRow, lCol, bRow, rCol);
        

        this.create_() creates 1919 rows and 20 columns which is much larger than expected. it created all the missing rows from initial-rendered row to the last row. It should render 80 rows (preload row size is 80) from the last row.

        1. Demo2Composer.java
          2 kB
          hawk
        2. keikai-522.zul
          0.9 kB
          hawk

            jumperchen jumperchen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: