This is a migrated thread and some comments may be shown as answers.

RadMap performance in app with high memory usage

1 Answer 70 Views
Map
This is a migrated thread and some comments may be shown as answers.
Shrinand
Top achievements
Rank 1
Shrinand asked on 26 Mar 2015, 09:15 PM
Hi guys,

My app typically uses high amount of memory, up to 1GB in some cases. My machine has 12GB so no problem. However in intensive cases, RadMap fails to respond after panning/zooming for a couple of times. When profiled, the bottleneck is in Telerik.Windows.Controls.Map.TileSource.CreateBitmap(). I tried using cache but not much improvement. Any advice?

<Window x:Class="RadMapPerf.MainWindow"
        Title="MainWindow" Height="600" Width="800">
    <Grid>
        <telerik:RadMap x:Name="RadMap" Center="38.8993487,-77.0145665" UseDefaultLayout="False" ZoomLevel="7">
            <telerik:RadMap.Provider>
                <telerik:OpenStreetMapProvider IsTileCachingEnabled="True"/>
            </telerik:RadMap.Provider>
        </telerik:RadMap>
    </Grid>
</Window>
public partial class MainWindow : Window
    {
        private readonly List<string> _memory = new List<string>();
 
        public MainWindow()
        {
            InitializeComponent();
 
            // fake memory usage
            for (var i = 0; i < 100000000; i++)
                _memory.Add("memory_usage");
                 
        }
    }

1 Answer, 1 is accepted

Sort by
0
Shrinand
Top achievements
Rank 1
answered on 26 Mar 2015, 09:17 PM
Duplicate thread due to network issue. Please remove
Tags
Map
Asked by
Shrinand
Top achievements
Rank 1
Answers by
Shrinand
Top achievements
Rank 1
Share this question
or