Cruisers Forum

Join CruisersForum Today

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

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,493
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, 12:20   #2
Registered User
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,460
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

Thread Tools
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

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 19:05.

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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.