Re: [Plplot-devel] setlocale

2023-06-15 Thread Hazen Babcock via Plplot-devel
* Phil Rosenberg ; plplot-devel@lists.sourceforge.net *Subject:* Re: [Plplot-devel] setlocale Hi Phil, Can you clarify a bit about the performance difference? Re-reading what you wrote below I get the impression that just removing the locale calls alone would only improve things by abou

Re: [Plplot-devel] setlocale

2023-06-14 Thread Phil Rosenberg
enberg ; plplot-devel@lists.sourceforge.net Subject: Re: [Plplot-devel] setlocale Hi Phil, Can you clarify a bit about the performance difference? Re-reading what you wrote below I get the impression that just removing the locale calls alone would only improve things by about 2.5x? Is that c

Re: [Plplot-devel] setlocale

2023-06-14 Thread Hazen Babcock via Plplot-devel
ysg> *From:* Hazen Babcock *Sent:* Tuesday, June 13, 2023 1:31:38 PM *To:* Phil Rosenberg ; plplot-devel@lists.sourceforge.net *Subject:* Re: [Plplot-devel] setlocale Hi Phil, I don't think (1) is a good idea. It seems like thi

Re: [Plplot-devel] setlocale

2023-06-13 Thread Phil Rosenberg
ge.net Subject: Re: [Plplot-devel] setlocale Hi Phil, I don't think (1) is a good idea. It seems like this only effects somewhat extreme plotting situations? Some of the examples also use plshade() and they don't seem to be particularly slow. Alan I think was concerned that the libraries tha

Re: [Plplot-devel] setlocale

2023-06-13 Thread Hazen Babcock via Plplot-devel
ists.sourceforge.net *Subject:* Re: [Plplot-devel] setlocale Hi Hazen, Phil, If the setting and restoring of the locale takes so much time, then would it be an option to use this only on the plot functions that might actually be affected by the locale? I have only glanced at the code and I h

Re: [Plplot-devel] setlocale

2023-06-02 Thread Phil Rosenberg
. So that's around two orders of magnitude speed increase at least. Phil From: Arjen Markus Sent: Friday, June 2, 2023 7:47:08 AM To: Hazen Babcock ; plplot-devel@lists.sourceforge.net Subject: Re: [Plplot-devel] setlocale Hi Hazen, Phil, If the setting

Re: [Plplot-devel] setlocale

2023-06-02 Thread Arjen Markus
the intended functionality though and get rid of the performance issue. Regards, Arjen -Original Message- From: Hazen Babcock via Plplot-devel Sent: Thursday, June 1, 2023 12:57 AM To: plplot-devel@lists.sourceforge.net Subject: Re: [Plplot-devel] setlocale Caution: This message was sent

Re: [Plplot-devel] setlocale

2023-05-31 Thread Hazen Babcock via Plplot-devel
Github has an interesting feature which lets you browse the code and see the last commit that touched a particular part of the code. Using that it looks like saving and restoring the locale was added to the functions in src/plcore.c by Alan on Sep 7, 2009. The commit message: """ Protect

Re: [Plplot-devel] setlocale

2023-05-31 Thread Phil Rosenberg
Sorry, I was wrong in my last email - removing the locale calls from plP_state as well (used to reset the width after a contour draw within plshade) I ended up with a 2.5 times speed increase Phil On Mon, 29 May 2023 at 00:38, Phil Rosenberg wrote: > Hi all > I have been making further

Re: [Plplot-devel] setlocale

2023-05-31 Thread Phil Rosenberg
Just checking again if anyone has any knowledge of this? As far as I can see, plsave_set_locale and plrestore_locale temporarily set the LC_NUMERIC locale to "C" during calls to the driver. This sets the decimal delimiter and the thousands separator and how many digits are between the thousands