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

Roman Boyko commented on FLINK-30088:
-------------------------------------

I've updated the PR ([https://github.com/apache/flink/pull/21406]) to optimize 
only TtlMapState and added benchmark results there. 

The total performance improvement is above 17%.

> Excessive state updates for TtlMapState and TtlListState
> --------------------------------------------------------
>
>                 Key: FLINK-30088
>                 URL: https://issues.apache.org/jira/browse/FLINK-30088
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / State Backends
>            Reporter: Roman Boyko
>            Assignee: Roman Boyko
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: image-2022-11-18-20-25-14-466.png, 
> image-2022-11-18-20-27-24-054.png
>
>
> After merging the FLINK-21413 every ttl check for cleanup for TtlMapState and 
> TtlListState (even without expired elements) leads to whole state update.
> This is because:
> - comparison by link inside `TtlIncrementalCleanup`:
> !image-2022-11-18-20-25-14-466.png|width=450,height=288!
> - and creating new map or list inside TtlMapState or TtlListState:
> !image-2022-11-18-20-27-24-054.png|width=477,height=365!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to