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 4C7AB200C11 for ; Sat, 4 Feb 2017 15:53:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4AED4160B63; Sat, 4 Feb 2017 14:53:04 +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 8F2B9160B56 for ; Sat, 4 Feb 2017 15:53:03 +0100 (CET) Received: (qmail 55619 invoked by uid 500); 4 Feb 2017 14:53:02 -0000 Mailing-List: contact issues-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@jmeter.apache.org Delivered-To: mailing list issues@jmeter.apache.org Received: (qmail 55606 invoked by uid 99); 4 Feb 2017 14:53:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2017 14:53:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 194681A04FE for ; Sat, 4 Feb 2017 14:53:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.398 X-Spam-Level: ** X-Spam-Status: No, score=2.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1PIibKjfYqJV for ; Sat, 4 Feb 2017 14:53:01 +0000 (UTC) Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com [209.85.213.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 55EE05F30A for ; Sat, 4 Feb 2017 14:53:00 +0000 (UTC) Received: by mail-vk0-f44.google.com with SMTP id t8so31133864vke.3 for ; Sat, 04 Feb 2017 06:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Z1ou3+gPUVUZaQB/wSHhnIVT9IdJsFR6AM+8z7RRWbs=; b=vIUbixnhwzbkTDVCkhOhonLSiaur54Fzm7PnDdekt9oWjo44b+DY4k4EZQ8sG5STar 0AOI5Op+qSWCp5dtRny13Nmns52HN5PYAn4dMqAK6PXluNyF8FkeH3qJpcRoCBCd1rZv UZXPx+88PKpwwoZXu3gCU3JTiTKYtOzecBrSLONvNNsI6DWzJ/5w4244vuqtXX7UmOZu 3SN7A+HTqzxIsKwyouNcU701eloOLJcYJ2h0B4kGuhFZWHt2c8VgJGjpa2hU6j7l83pC i1y4AYSMxxR7HYG86+QTawl4CSTSJnZbl1o1YKB4SpgWiZaCCZeN3HxJ3vU44bqr7JMK 6zvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Z1ou3+gPUVUZaQB/wSHhnIVT9IdJsFR6AM+8z7RRWbs=; b=bwxQcwHLC1pcXSE0IyFGIrypoM6MX+f7jmIYKm9leUuJtI65WL3DZ3Px5zTkQfv+OM 8pYvm8BurwzZY5l0+LiiRhjkPyatOET8Ta6SPEVjc4ciexO6Bofor/VCS9poWyi7KtPc e5j6f/7RnIFdG6ng0BSBxaJ1C8Q46vhdN28XsntdKZ5mUMoYiJYslxaJXJ3V3Cjzoomi xOu58GB9KINkzRympEt5ULTgyUyJ7wBrCMZk2Q5dKynXN+ktlBKvcgjAK8juN/2urTID 7XyIaMsb9W5h+NtHpkMJOUN8Aezectz7GhcWI97NnlSZgDIwgFwgN3m03HkoVc4WC/qz 49qA== X-Gm-Message-State: AMke39kXxuhIDLpCXk7/APAEyDtWtNd81tbZ6HUQjErJ3t3c4WLOLqKmb4cQK4UgOsN2j5R1nHYqOKd5vmw8gg== X-Received: by 10.31.115.142 with SMTP id o136mr966220vkc.139.1486219973265; Sat, 04 Feb 2017 06:52:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Vladimir Sitnikov Date: Sat, 04 Feb 2017 14:52:42 +0000 Message-ID: Subject: Re: [Bug 60687] Make GUI more responsive when LoggerPanel gets a lot of events To: issues@jmeter.apache.org Content-Type: multipart/alternative; boundary=94eb2c14c67e908f3a0547b58df9 archived-at: Sat, 04 Feb 2017 14:53:04 -0000 --94eb2c14c67e908f3a0547b58df9 Content-Type: text/plain; charset=UTF-8 Felix> The timer lives in the awt thread, so we need no invokeLater. Or do I miss Felix> something? I thought it was java.util.Timer. I did not notice that was javax.swing.Timer. swing timer is fine. Philippe>I agree. The only reason I would see for calling invokeLater would maybe to Philippe>avoid freezing UI if the call takes more than some limit invokeLater is not required provided the timer is swing timer. I wonder if we can rework log panel into "append" calls instead of "set text from scratch". Philippe>For me there is only 1 Timer thread no ? I'm not sure if we can reuse that swing timer to aggregate events form listeners (e.g. statistics listeners, etc). Felix>The component is set to an empty text Oh, I did not notice that. On the other hand, it looks awkward. I find "buffer.clear(); modified=true;" easier to reason about since that results in a single place where the textarea gets updated. PS. Are you sure "events.clear()" is thread-safe? PPS. Can we move format.format(logEvent) out of syncrhonized(events) block? Vladimir --94eb2c14c67e908f3a0547b58df9--