[ 
https://issues.apache.org/jira/browse/FLINK-10325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16615146#comment-16615146
 ] 

ASF GitHub Bot commented on FLINK-10325:
----------------------------------------

tillrohrmann commented on a change in pull request #6683: [FLINK-10325] [State 
TTL] Refactor TtlListState to use only loops, no java stream API for performance
URL: https://github.com/apache/flink/pull/6683#discussion_r217784073
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/ttl/TtlListState.java
 ##########
 @@ -116,7 +125,12 @@ public void updateInternal(List<T> valueToStore) throws 
Exception {
        }
 
        private List<TtlValue<T>> withTs(List<T> values) {
-               return 
values.stream().map(this::wrapWithTs).collect(Collectors.toList());
+               List<TtlValue<T>> withTs = new ArrayList<>();
 
 Review comment:
   Same here with initial capacity.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [State TTL] Refactor TtlListState to use only loops, no java stream API for 
> performance
> ---------------------------------------------------------------------------------------
>
>                 Key: FLINK-10325
>                 URL: https://issues.apache.org/jira/browse/FLINK-10325
>             Project: Flink
>          Issue Type: Improvement
>          Components: State Backends, Checkpointing
>    Affects Versions: 1.6.0
>            Reporter: Andrey Zagrebin
>            Assignee: Andrey Zagrebin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.6.1, 1.7.0
>
>




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

Reply via email to