Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CD18F200C8F for ; Fri, 26 May 2017 05:36:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CBAF0160BD5; Fri, 26 May 2017 03:36:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1E9D7160BCA for ; Fri, 26 May 2017 05:36:12 +0200 (CEST) Received: (qmail 13886 invoked by uid 500); 26 May 2017 03:36:11 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 13877 invoked by uid 99); 26 May 2017 03:36:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 May 2017 03:36:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 64DE2CD77A for ; Fri, 26 May 2017 03:36:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5TWD6v05KWD4 for ; Fri, 26 May 2017 03:36:10 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2AB715FCD2 for ; Fri, 26 May 2017 03:36:10 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6A850E0373 for ; Fri, 26 May 2017 03:36:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2980321B58 for ; Fri, 26 May 2017 03:36:04 +0000 (UTC) Date: Fri, 26 May 2017 03:36:04 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FLINK-6359) Utilize Hierarchical Timing Wheels for performant timer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 26 May 2017 03:36:14 -0000 [ https://issues.apache.org/jira/browse/FLINK-6359?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1599= 1975#comment-15991975 ]=20 Ted Yu edited comment on FLINK-6359 at 5/26/17 3:35 AM: -------------------------------------------------------- Interesting observations, Ben . was (Author: yuzhihong@gmail.com): Interesting observations, Ben. > Utilize Hierarchical Timing Wheels for performant timer > ------------------------------------------------------- > > Key: FLINK-6359 > URL: https://issues.apache.org/jira/browse/FLINK-6359 > Project: Flink > Issue Type: Improvement > Components: DataStream API, Local Runtime > Reporter: Ted Yu > > In this thread on mailing list: > http://search-hadoop.com/m/Flink/VkLeQPmRa31hd5cw > Gyula F=C3=B3ra mentioned that timer deletion becomes performance bottlen= eck due to the usage of priority queue. > Benjamin has an implementation for Hierarchical Timing Wheels (Apache Lic= ense) : > https://github.com/ben-manes/caffeine/blob/master/caffeine/src/main/java/= com/github/benmanes/caffeine/cache/TimerWheel.java > {code} > * A hierarchical timer wheel to add, remove, and fire expiration events = in amortized O(1) time. The > * expiration events are deferred until the timer is advanced, which is p= erformed as part of the > * cache's maintenance cycle. > {code} > We should consider porting the above over to facilitate performant timer. -- This message was sent by Atlassian JIRA (v6.3.15#6346)