Cruisers Forum

Join CruisersForum Today

Thread Tools Search this Thread Rate Thread Display Modes
Old 31-01-2015, 11:06   #1
Registered User
boat_alexandra's Avatar

Join Date: Aug 2009
Location: charleston
Boat: bristol 27
Posts: 3,610
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:
Either master (has some other improvements) or just startup_optimizations branch
boat_alexandra is offline   Reply With Quote
Old 31-01-2015, 13:20   #2
Registered User
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,937
Re: optimized startup

Cannot do for 2 days

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

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 boat_alexandra 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 13:56.

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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.