Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10082

Initialize StringBuilder in Slf4jReporter with estimated size

    XMLWordPrintableJSON

Details

    Description

      The Slf4jReporter uses a StringBuilder to generate the report that is later logged. Currently we don't pass the initial size, which for large deployments can result in frequent resizing of the backing array.

      We could either estimate the expected size based on the # of metrics, or store the size of the last report (given that the total metrics space is fairly constant).

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: