Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-1374

inserting many hyperlinks takes unexpectedly long time

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.9.3
    • Fix Version/s: 3.9.4
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      1. run the attached zul
      2. click the button to insert many hyperlinks (10000)

      Current Result

      the profiler indicates that FontMatch.match() consumes too much time.

      Expected Result

      time should be much less, since all hyperlink has the same style

      Workaround

      1. BookImpl.java
        52 kB
        hawk
      2. t6258.zul
        0.3 kB
        hawk
      3. T6258Composer.java
        1 kB
        hawk
      1. profile-better.png
        152 kB
      2. profiler.png
        191 kB

        Activity

        Hide
        hawk hawk added a comment - - edited

        Root cause

        set wrong font color code in FontMatcher, so it produces too many redundant fonts and a very long search time.

        Solution

        should be fontMatcher.setColor("#0000FF");

        Show
        hawk hawk added a comment - - edited Root cause set wrong font color code in FontMatcher, so it produces too many redundant fonts and a very long search time. Solution should be fontMatcher.setColor("#0000FF");

          People

          • Assignee:
            hawk hawk
            Reporter:
            hawk hawk
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: