From: Phil R. <p.d...@gm...> - 2023-05-31 14:57:02
|
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 <p.d...@gm...> wrote: > Hi all > I have been making further optimisations to the wxwidgets backen, as I > have still been finding it painfully slow for plshade calls. > It turned out that almost all the time within the backend (>99%) was spent > selecting pens and brushes and allocating memory for every fill within the > plshade call. Less that 1% was actually spent within the rendering call to > wxWidgets. I have made some good improvements here. > > However, in addition to this, about 50% of the total execution time is > spent in the setlocale function. This is called before and after each > polygon fill in the core plplot code. > > I wondered if anyone really knows the purpose of these calls? Perhaps they > are to ensure we have consistent numeric representations across regions? If > so, then I don't really understand why they are needed for polygon fills. > > Any thoughts would be welcome > Phil > |