Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-422

PERFORMANCE ISSUE: 'format load', 'put data' & (!) "APPEND SHEET" (!)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.6.2-incubating
    • None
    • performance
    • Windows & Linux
    • Important

    Description

      Dear Sir,

      We are using ODFTOOLKIT for 3 main functions:
      1. "Format Load" - Loading format into spreadsheet
      2. "Put Data" - population table into spreadsheet , it could be table with 5,000 rows and 20 columns.
      3. "Append Sheet" - Appending several sheets and assembling workbook. (up to 150 sheets)

      We have a serious issue with performance, these 3 steps for 150 sheets with 5000x20 dimension may take more then 1h.

      See some code below.

      Any help or idea will be highly appreciated.

      Kakha

      ---------------------------------------------------------------------------------------
      @Override
      public void setCellValue(int colIndex, int rowIndex, double value) {
      try {
      Cell cell = currentSheet.getCellByPosition(colIndex, rowIndex);
      String valueType = cell.getValueType();
      if (valueType != null) {
      switch (valueType)

      { case "percentage": cell.setPercentageValue(value); break; default: cell.setDoubleValue(value); }

      } else

      { cell.setDoubleValue(value); }

      } catch (Throwable t)

      { log.error(t.getMessage(), t); }

      }

      ---------------------------------------------------------------------------------------------------------

      try (ByteArrayInputStream in = new ByteArrayInputStream(content))

      { spreadsheetDocument = SpreadsheetDocument.loadDocument(in); }

      Attachments

        1. odftoolkit-performance-test.zip
          156 kB
          Nikoloz Gochiashvili

        Issue Links

          Activity

            People

              svanteschubert Svante Schubert
              kakhaberi Kakha Kheladze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: