Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-5793

Configuring the initial size of PublicBaos in PageWriter

    XMLWordPrintableJSON

Details

    Description

      A PageWriter uses two PublicBaos to buffer the encoding results of timestamps and values. However, the initial size of PublicBaos is the default (64B). Consequently, if the page is large, the PublicBaos will extend several times and each involves a full memory copy, which can be time-consuming.

      To avoid unnecessary memory copy, the initial size of PublicBaos should be configurable. There are many ways to configure the value, and here are two alternatives:
      1. Use half of the maximum page size as the initial size.
      2. Record the (average) page size of the last flush in a context, and pass it down to PageWriter in the next flush.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jt2594838 Tian Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: