MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




VB .NET is so slow!

This is a discussion on VB .NET is so slow! within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have recently been converting a MapPoint project from VB6 to VB .NET 2003. The project includes two distinctly separate ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-27-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
VB .NET is so slow!

I have recently been converting a MapPoint project from VB6 to VB .NET 2003. The project includes two distinctly separate procedures that perform multiple iterations to obtain the end result. It felt slower in .NET so I timed the procedures using the Timer function.

In VB6 both procedures took aproximately 1.0 seconds even if repeated several times.

The initial times in .NET were 1.25 seconds, however if the procedures were repeated, then the times would gradually increase to 5.0 seconds and then revert back to 1.25 seconds in a cyclical fashion.

Both produced exactly the same result and used the same code, no modifications were required for .NET.

So if you want fast code stick with VB6!!!!

Perhaps everyone knew this already.

If anyone has any thoughts on this I'd be interested.

Roger
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-27-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
If you made no changes for .NET and your getting cyclical performance results, my first thought would be you need to add calls to object Dispose methods. You can use Intelisense to find which classes implement Dispose, for instances of those objects be sure to call it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-28-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thanks but still having problems. I suspected it might be a problem with garbage disposal so moved the code onto a form, created a new instance of the form, ran the code, then called the dispose method on the form instance.
The code itself only uses standard variables and does not create any new objects that can be disposed.
The times still vary cyclically with each call to the procedure.

Roger
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
net, slow


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Shapes.AddPolyline is very slow tdaffin MapPoint 2006/2009 Discussion 4 01-27-2006 08:08 AM
Access and MapPoint control _really_ slow dynek MapPoint 2006/2009 Discussion 2 01-07-2005 12:14 PM
moving through recordset is slow stephenmillington MapPoint 2006/2009 Discussion 0 07-07-2004 06:28 AM
MP 2004 really slow with large custom territories Anonymous MapPoint 2006/2009 Discussion 4 02-04-2004 07:21 AM


All times are GMT -5. The time now is 01:43 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54