Hi Alan
I am on my commute home right now. But if you want to test if the random number
generator is the cause then find the Rand constructor – Rand::Rand() and
comment out everything, replacing it with a single line that sets the seed
(probably m_seed or something) to a fixed value, like 0. That will show whether
generating the seed is causing the slowdown.
Phil
Sent from my Windows 10 phone
From: Alan W. Irwin
Sent: 19 December 2016 19:38
To: Phil Rosenberg; Pedro Vicente; PLplot development list
Subject: Re: New way to generate wxwidgets debug output
To Phil and Pedro:
Just woke up, skimmed through your e-mails, and I promise to look at the
build issue that Pedro found starting just when I finish this e-mail.
Further thoughts below on what Phil said.
On 2016-12-19 17:42-0000 Phil Rosenberg wrote:
> Hi Alan
> Could you just confirm to me what command you are using to test the timings?
Exactly as stated in the commit message (after building the x01c, wxwidgets,
and wxPLViewer prerequisite targets).
time examples/c/x01c -dev wxwidgets -np; echo "done x01c"; time examples/c/x01c
-dev wxwidgets -np;echo "done x01c
It is the second of these commands where the pause occurs.
At one point I thought as you did that the random number generator
would have something to do with it, but is that actually used in the
interval where the pause is occurring?
The only reference to randomGenerator in the key interval of code is
static Rand randomGenerator; // make this static so that rapid repeat
calls don't use the same seed
Last night I dismissed this possibility, but I guess what you are
saying now is this is not a simple declaration of Rand for later on,
but this also actually ends up running randomGenerator!
Regardless of such speculation on my part, I will try building up
some entropy before the above test to see if that affects the pause. I
will also try temporarily commenting out randomGenerator from all
aspects of the code to see if that totally solves the issue. Then if
that step completely proves Phil's hypothesis, figure out a fix that
doesn't require a tonne of pure entropy. But the first priority is the
above build fix.
Phil, later on today (hopefully just an hour or so) I will also start
testing your patch for the other issue of getting ready for Plot().
So yesterday we had two long-standing wxwidgets-related issues and
today there is a decent prospect of fixing both of them. So I am
pretty hopeful right now!
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel