Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3310

Improve client rendering performance when opening nodes

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • 8.5.2
    • 8.0.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S1

      steps to reproduce

      1. run the attached zul
      2. click "open All Without Notify" button
      3. click "open All With Notify"
      4. comparing the performance

      actual result

      • client-side rendering takes a long time. in openWithoutNotification.cpuprofile, open() gets longer and longer.
      • Using "notify change" takes less time than "open All Without Notify" case.

      debug info

      • please try to optimize it to avoid taking longer and longer time when the number of open node increases.
      • At client side, opening nodes one by one requires much time to calculate width. is it possible to reduce width calculating time?
      • please check attached screenshots

        1. openWithoutNotification.cpuprofile
          1.46 MB
        2. openWithNotification.cpuprofile
          750 kB
        3. openNode.png
          openNode.png
          93 kB
        4. LargeTreeViewModel.java
          3 kB
        5. largetree.zul
          1 kB
        6. CustNodeData.java
          0.3 kB
        7. calcWidth.png
          calcWidth.png
          28 kB

            CharlesQiu CharlesQiu
            hawk hawk
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Time Spent - 5 hours Remaining Estimate - 1 day, 3 hours
                1d 3h
                Logged:
                Time Spent - 5 hours Remaining Estimate - 1 day, 3 hours
                5h