Myasuka commented on issue #9255: [FLINK-13034] Introduce isEmpty method for MapState URL: https://github.com/apache/flink/pull/9255#issuecomment-531567848 @carp84, I have compare the new API `isEmpty()` with previous usage `iterator().hasNext()` in my forked [flink-benchmarks](https://github.com/Myasuka/flink-benchmarks/tree/mapstate-isempty). I tested this on my local mac, and as you can see, the performance improvement is significant. |map state benchmark |iteratorHasNext |isEmpty |improvement | |---|---|---|---| | Throughput | 326.689 ± 11.680 ops/ms | 471.627 ± 6.119 ops/ms | 44.37% |
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
