Uploaded image for project: 'Click'
  1. Click
  2. CLK-305

Table control might allocate excessive memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core
    • None
    • Click 1.3.1 / 1.4RC2

    Description

      Table#toString() allocate memory for HtmlStringBuffer.

      int bufferSize =
      (getColumnList().size() * 60) * (getRowList().size() + 1);

      However, when Table is paginated, Table control allocates excessive memory.
      I think if the page size is specified, the initial buffer size should be calculated by the page size:

      int bufferSize =
      (getColumnList().size() * 60) * (getPageSize() + 1);
      ^^^^^^^^^^^^^

      I'm using Table with large rows. So sometimes, it causes OutOfMemory by this issue.

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            takezoe Naoki Takezoe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: