Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3602F10D62 for ; Thu, 27 Mar 2014 18:20:24 +0000 (UTC) Received: (qmail 84250 invoked by uid 500); 27 Mar 2014 18:20:24 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 84001 invoked by uid 500); 27 Mar 2014 18:20:22 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 83987 invoked by uid 99); 27 Mar 2014 18:20:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2014 18:20:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sandro.martini@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-la0-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2014 18:20:17 +0000 Received: by mail-la0-f47.google.com with SMTP id y1so2927985lam.34 for ; Thu, 27 Mar 2014 11:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FHCkyKww0Go9hV98cAI19jgL2QR+klgJTItksCT3lFw=; b=JPBMdxV5PRYeej1XtAZ9Vxl2pwrkN8qVyPEMKNnpp9nhNG46cF6/m4LFa4Ptvp64VA 5MIULxe4N4d/ABAprUIKnyNXZ0MIAMkBu4aag/huYautZ7828WJO5vnl8I4TEZl1P4aC Y/iu606wAwjRBdVHZJlN/SNr5KUedLn727lJvs8+P1fsD7I9kSUUf57Ipf2uIY1f7HYf 4c7JjT1nHoJlCu6v+QesREgor2U7KdBErvwkg/XKJbB6sZiEHDWsafIBSGlhPFjo+2RA ImDHowtML8wOI2erKXsFEjoWuM6iwJtH2nvGfY2T4Fdj/aKSoVSqfWCprOBC0exXHOyi stHQ== MIME-Version: 1.0 X-Received: by 10.153.7.200 with SMTP id de8mr1845228lad.19.1395944395540; Thu, 27 Mar 2014 11:19:55 -0700 (PDT) Received: by 10.112.53.226 with HTTP; Thu, 27 Mar 2014 11:19:55 -0700 (PDT) Received: by 10.112.53.226 with HTTP; Thu, 27 Mar 2014 11:19:55 -0700 (PDT) In-Reply-To: <008101cf49e2$aa5caab0$ff160010$@mrchambers.org> References: <005201cf48da$8e5884f0$ab098ed0$@mrchambers.org> <008101cf49e2$aa5caab0$ff160010$@mrchambers.org> Date: Thu, 27 Mar 2014 19:19:55 +0100 Message-ID: Subject: RE: Speeding up Apache Pivot For embedded Application From: Sandro Martini To: Users - Apache Pivot Content-Type: multipart/alternative; boundary=001a1137e986d28e5d04f59aa103 X-Virus-Checked: Checked by ClamAV on apache.org --001a1137e986d28e5d04f59aa103 Content-Type: text/plain; charset=ISO-8859-1 Hi Mark, this is a good news :-) , I'm really happy for you. If you can, could you post your use case for Pivot (for an embedded app) ? Could become another user story for Pivot applications in our wiki. Last, what does it mean "stopped processes from updating anything in the GUI" (in your code) ? If you have some hint please tell, it could be useful even to others. Thanks for sharing with us your real-world experience with Pivot. Bye, Sandro Il 27/mar/2014 18:34 "Mark R. Chambers" ha scritto: > Hi All, > > SUMMARY: > I spent today working on making it more efficient, and it is substantially > faster now. Thanks for the feedback. > > DETAILS: > I am using OpenJDK on the linux platform and Oracle on the windows one;] > > I increased the memory of the JAVA processes using memory command line > options (It think they are...-Xms and Xmx or something...) > I also stopped processes from updating anything in the GUI, since it seems > to force a lot of other GUI items to invalidate. > > Application is much faster now, and almost the same speed as my previous > JAVA application and has a fair more complex GUI... > I will continue to work on it, I think I use far too many > FazetTableView's(about 9...), so I may need to go through that code and > look > for some efficiencies I can add.. > > PS-Thanks for the feedback, is probably ok for now;] > Regards, > Mark. > -----Original Message----- > From: Sandro Martini [mailto:sandro.martini@gmail.com] > Sent: Wednesday, 26 March 2014 7:15 PM > To: Users - Apache Pivot > Subject: Re: Speeding up Apache Pivot For embedded Application > > Hi Mark, > > > Is there anyway to make sun.awt.GlobalCursorManager$NativeUpdater.run() > more efficient? > No (sorry), this class is bundled in rt.jar (the main jar for the JRE), so > unless you provide a patched JRE I don't think it's possible (assuming from > a legal point of view it's doable, by the license). And we don't use it > directly of course ... > Note that probably this class interacts with Threads, native (OS > specific) functions and Window Managers and other complex stuff, so anyway > it would be an hard task. Its source is not in the usual src.zip (in root > of > JDK). > > Here an online version of that class (taken from OpenJDK-7): > http://www.docjar.com/html/api/sun/awt/GlobalCursorManager.java.html > > > Just for curiosity: did you tried with Oracle JDK or Open JDK ? Could you > try to swap ? > > > Bye, > Sandro > > --001a1137e986d28e5d04f59aa103 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hi Mark,
this is a good news :-) , I'm really happy for you.

If you can,=A0 could you post your use case for Pivot (for a= n embedded app) ? Could become another user story for Pivot applications in= our wiki.

Last, what does it mean "stopped processes from updatin= g anything in the GUI" (in your code) ?
If you have some hint please tell, it=A0 could be useful even to others.

Thanks for sharing with us your real-world experience with P= ivot.=A0

Bye,
Sandro

Il 27/mar/2014 18:34 "Mark R. Chambers"= ; <mark@mrchambers.org> ha= scritto:
Hi All,

SUMMARY:
I spent today working on making it more efficient, and it is substantially<= br> faster now. Thanks for the feedback.

DETAILS:
I am using OpenJDK on the linux platform and Oracle on the windows one;]
I increased the memory of the JAVA processes using memory command line
options (It think they are...-Xms and Xmx or something...)
I also stopped processes from updating anything in the GUI, since it seems<= br> to force a lot of other GUI items to invalidate.

Application is much faster now, and almost the same speed as my previous JAVA application and has a fair more complex GUI...
I will continue to work on it, I think I use far too many
FazetTableView's(about 9...), so I may need to go through that code and= look
for some efficiencies I can add..

PS-Thanks for the feedback, is probably ok for now;]
Regards,
Mark.
-----Original Message-----
From: Sandro Martini [mailto:sa= ndro.martini@gmail.com]
Sent: Wednesday, 26 March 2014 7:15 PM
To: Users - Apache Pivot
Subject: Re: Speeding up Apache Pivot For embedded Application

Hi Mark,

> Is there anyway to make sun.awt.GlobalCursorManager$NativeUpdater.run(= )
more efficient?
No (sorry), this class is bundled in rt.jar (the main jar for the JRE), so<= br> unless you provide a patched JRE I don't think it's possible (assum= ing from
a legal point of view it's doable, by the license). And we don't us= e it
directly of course ...
Note that probably this class interacts with Threads, native (OS
specific) functions and Window Managers and other complex stuff, so anyway<= br> it would be an hard task. Its source is not in the usual src.zip (in root o= f
JDK).

Here an online version of that class (taken from OpenJDK-7):
http://www.docjar.com/html/api/sun/awt/GlobalCursor= Manager.java.html


Just for curiosity: did you tried with Oracle JDK or Open JDK ? Could you try to swap ?


Bye,
Sandro

--001a1137e986d28e5d04f59aa103--