Hi support
When opening large SHAPE files (70MB and above) with ThinkGeo.MapSuite.WpfDesktopEditioncontrol (version 9.0.0.180) we observe application UI freezing for 6-8 seconds.
Test PC configuration: i7-4790K, 4Ghz, 8 cores, 8GByte RAM, SSD HDD
OS: 64bit Windows 8
Note: This observed only with SHAPE files and does not happen for large image or, for example, CAD-files.
This is strange, since according to my information, parsing of the Shape file performed in separate worker thread and thus should not affect main UI thread of the application.
Profiling shows, that most of CPU utilization happens in garbage collector routines (GC) - see attached screenshot of the stack trace.
Thus i come to conclusion that parsing large SHAPE file implemented with high pressure on the garbage collector. Since GC works exclusively on main thread, freezing all other application activities, that may explain freezing of the UI.
In order improve application responsiveness, i tried to change GCColletionMode to optimized:
wpfMap.GCCollectionMode = GCCollectionMode.Optimized;
though without noticeable effect.
Question:
- How can i avoid application freezing when opening large SHAPE files?
- If my speculation about GC role in these freezings is correct, how can i decrease GC pressure and thus avoid UI freeze?
Thanks in advance and Happy New Year!
Best regards, Alex