Github user StefanRRichter commented on a diff in the pull request: https://github.com/apache/flink/pull/3859#discussion_r115714053 --- Diff: flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBKeyedStateBackend.java --- @@ -911,9 +915,11 @@ void releaseResources(boolean canceled) { if (canceled) { List<StateObject> statesToDiscard = new ArrayList<>(); --- End diff -- We could also preallocate the size of `statesToDiscard` as the sum all things we are planning to insert in the next step.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---