git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (FLINK-10082) Initialize StringBuilder in Slf4jReporter with estimated size


Chesnay Schepler created FLINK-10082:
----------------------------------------

             Summary: Initialize StringBuilder in Slf4jReporter with estimated size
                 Key: FLINK-10082
                 URL: https://issues.apache.org/jira/browse/FLINK-10082
             Project: Flink
          Issue Type: Improvement
          Components: Metrics
    Affects Versions: 1.5.2, 1.6.0
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler


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).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-flink-development/msg08563.html on line 92
Call Stack
#TimeMemoryFunctionLocation
10.0006363608{main}( ).../msg08563.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-flink-development/msg08563.html on line 92
Call Stack
#TimeMemoryFunctionLocation
10.0006363608{main}( ).../msg08563.html:0