Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34769

TLF Performance issue (applyLeafFormat method)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Apache Flex 4.10.0, Apache Flex 4.11.0, Apache Flex 4.12.0, Apache Flex 4.13.0, Apache Flex 4.14.0
    • Component/s: TLF
    • Labels:
    • Environment:
      OS: Windows 7
      AIR version: 15 and 16
      CPU: Intel i7 2630h
      RAM: 4GB

      Description

      I have a very strange performance difference between 2 versions of TextLayout.swc. The first one is the swc included in Apache Flex 4.14 SDK and the second one is included in Apache Flex 4.9.1.

      I have a very large text, more or less 200 DIN-A4 pages in a Textflow. I scroll to the end of the document and I underline a word. This is my result underling a word in both versions.

      Flex SDK Version Time

      4.9.1 21 ms (miliseconds). 0,02 Seconds

      4.14 3.405 ms (miliseconds). 3,4 Seconds

      The time difference happens in this line of code:
      EditManager.applyLeafFormat(oFormat);

      Anyone has any idea what's the problem?

      More info: https://issues.apache.org/jira/browse/FLEX/?selectedTab=com.atlassian.jira.jira-projects-plugin:issues-panel

        Attachments

        1. textLayout_14.swc
          535 kB
          goratz
        2. textLayout_9.1.swc
          471 kB
          goratz
        3. TLF_Bench.fla
          5 kB
          goratz
        4. TLFPerfTest.as
          4 kB
          Alex Harui

          Activity

            People

            • Assignee:
              harbs Harbs
              Reporter:
              goratz goratz
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: