Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 31-01-2015, 10:06   #1
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,414
optimized startup

I noticed opencpn was taking almost 3 seconds to start on my computer (and much longer on slower computers) when lots of plugins are enabled, and I felt like this was too slow, because some computers it's more than 10 seconds.

I managed to gain a 15% speedup by removing redundant initializations. Next, I was able to defer non-essential routines to get a 10x speedup if vector charts are not initially displayed, or only a 2x speedup if they are.

So now I have 280 milliseconds with raster charts and 1020 milliseconds with vector charts, down from 2800 milliseconds before.

I would like some feedback to make sure I didn't break anything horribly before making a pull request because of the nature of the changes. Especially useful on slower machines. The startup time in ms is printed in the log file.

Try my fork:
Code:
github.com/seandepagnier/OpenCPN
Either master (has some other improvements) or just startup_optimizations branch
seandepagnier is offline   Reply With Quote
Old 31-01-2015, 12:20   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,525
Images: 2
Re: optimized startup

Cannot do for 2 days

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Optimized for Touch Screen scotte OpenCPN 134 21-09-2015 15:54
Optimized Opencpn: Testers Needed seandepagnier OpenCPN 308 22-10-2014 13:06
Espar Airtronic - White Smoke on Startup Sonrisa Plumbing Systems and Fixtures 17 07-07-2011 09:54

Advertise Here


All times are GMT -7. The time now is 09:04.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.