Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30625

High CPU load when editing very long text in Richtext editor

    Details

      Description

      Editing Richtext that is very long (50 000+ words) results in a very laggy experience (big delays) and high CPU loads on typing/changing the text.

      Steps to reproduce
      1. Clean installation of Ez Platform 2.5
      2. Create a new Content Type with only RichText Field.
      3. Create a Content of previously created Content Type. In Richtext field paste 10 times 10 000 words generated on https://www.lipsum.com
      4. Save content.
      5. Edit content.
      6. Start typing in the middle of the wall of text.

      Result
      Big delay when typing.

        Activity

        Hide
        Łukasz Serwatka added a comment -

        This page says that the typical novel (book) is ca 60 000 - 100 000 words long (https://thewritepractice.com/word-count/). Online Editor for RichText was not designed to handle book-length texts in JavaScript.

        Show
        Łukasz Serwatka added a comment - This page says that the typical novel (book) is ca 60 000 - 100 000 words long ( https://thewritepractice.com/word-count/ ). Online Editor for RichText was not designed to handle book-length texts in JavaScript.
        Hide
        Support Kaliop added a comment -

        Hello,
        I'm following this ticket because I have reported this bug on the ez enterprise portal. In my opinion this is really an issue because there is no CPU load at content creation, the editor behavior is normal (no lag at all). This is only when you publish and edit again the content that the CPU load issue appears. That's why I think there is an issue during the step of loading editor with an existing text. Do you see what I mean ?
        Jérôme - Kaliop

        Show
        Support Kaliop added a comment - Hello, I'm following this ticket because I have reported this bug on the ez enterprise portal. In my opinion this is really an issue because there is no CPU load at content creation, the editor behavior is normal (no lag at all). This is only when you publish and edit again the content that the CPU load issue appears. That's why I think there is an issue during the step of loading editor with an existing text. Do you see what I mean ? Jérôme - Kaliop
        Hide
        Łukasz Serwatka added a comment -

        It does not matter if this was before or after publication. Our tests indicates lagging regardless. As I explained, due to complexity of RichText it was not designed to handle this amount of words. You can try disable in the user settings word counter, it should help a bit. This is all we can recommend.

        Show
        Łukasz Serwatka added a comment - It does not matter if this was before or after publication. Our tests indicates lagging regardless. As I explained, due to complexity of RichText it was not designed to handle this amount of words. You can try disable in the user settings word counter, it should help a bit. This is all we can recommend.

          People

          • Assignee:
            Unassigned
            Reporter:
            Mateusz Bieniek
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: