[Kst] : Huge performance problem under Windows

Peter Kümmel syntheticpp at gmx.net
Mon Nov 16 13:33:33 CET 2009

Brisset, Nicolas wrote:
> Peter,
> you're my hero of the week-end! Thanks above all for that performance fix which was really needed, but also for all the nice little improvements here and there. I have just tested and it works very well. 

Glad to see your are not worried about my commits.

> The locale problem is actually something I have on Linux as well and I think it would make sense to add a checkbox to the ASCII config UI like:
> "use '.' as decimal separator (ignore regional settings)"
> I had actually already mentioned it on the kst list...

committed ;) will test it on Linux after this mail.

> There is just one thing I'm a bit surprised about: you blame MSVC's atof, but I have always compiled kst Windows with Qt Creator which uses Cygwin, and had the same performance problem. Well, I guess I don't need to understand, as long as it works :-)

mingwm10.dll uses the msvc runtime library from studio 6, I assume it simply maps to msvc's atof.

> You're of course welcome to contribute to kst further. I have no idea whether you have any interest apart from platform-specific fixes, but I think kst is a great tool and having the new version under Windows as well will be great for its exposure. There are a lot of interesting things on the roadmap, general or Windows-specific. To name just a few of the latter in case you'd be interested to give a hand there:
> - creation of a Windows installer (I think someone else wanted to look at that, and I was thinking about trying NSIS, but you may know better)
> - reactivation (i.e. port to kst2) and port to Windows of some data sources, like for instance CDF or netCDF which are currently not built under Windows. Maybe getdata (http://getdata.sourceforge.net/) would also be interesting, though I have no idea whether it can run under Windows. But there are specialists listening on this list, they will probably be able to say that
> - memleak when using OpenGL (though that one is possibly also an issue on Linux): each time you hover a different plot or resize the window (thereby triggering a repaint) a few kB get lost...
I try to find it. Is OpenGL enabled by default on Windows?


> Don't hesitate to talk to us, we can find you something to do. You sure don't want to get bored, do you :-)?
> Thanks again,
> Nicolas
>> -----Ursprüngliche Nachricht-----
>> Von: Peter Kümmel [mailto:syntheticpp at gmx.net]
>> Gesendet: Sonntag, 15. November 2009 14:36
>> An: kst at kde.org
>> Betreff: Re: [Kst] : Huge performance problem under Windows
>> Peter Kümmel wrote:
>>> Peter Kümmel wrote:
>>>> atof is dead slow on Windows, on Linux atof is magnitudes faster.
>>>> Measured with attached patch.
>>> I've replaced msvc's atof with a old bsd (V7) one, should be good
>>> enough to read generated data.
> [...]
>> I've committed the atof replacement for windows.
>> Now it loads gyrodata.dat within a second.
>> Peter

More information about the Kst mailing list