App Qt + sqlite working in Windows is slower than Mac OS?
Do not consider for trolling, but it happened.
Writing a parser for text files — for each file: in the OP reads, processes, writes the result in sqlite.
Developed on Mac OS — all was OK, could not get enough. Tried on Windows and was surprised. The speed of the target application is clearly less — and in Mac OS General CPU utilization during work of the program was usually under 80-90 percent, and then around 10-20. On Mac OS — GCC, on Windows mingv and vs2010.
Herminia.Kuhic answered on October 8th 19 at 02:03
And the optimization flags used? If no optimization (-O0) what are the results?
xander_Kozey answered on October 8th 19 at 02:05
in vs2010 there is a wonderful Profiler — test. Without the code and the profiling results You no nothing worthwhile to say.
ashtyn_Block answered on October 8th 19 at 02:07
Can be on Windows your app depends on speed of hard drive (in the resource monitor you can see)? If Yes, then you need to force the system to cache the desired data in memory: edit the settings sqlite, move some files to the ram disk or something.