Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: slow compilations
PostPosted: Thu Dec 19, 2013 6:31 pm 
Offline
Senior Newbie

Joined: Wed Sep 08, 2010 5:13 pm
Posts: 14
Website: http://tds-solutions.net
AOL: sorressean
Location: Massachusetts
hello all:
I am working on a mud written in c++ that's moving upwards of 35k lines of code at the moment. I have elimenated a ton of boost and started moving to c++11, which actually cut down my compilation time to under 1 minute. I was working on the code again this afternoon and my entire compilation with nothing really changed but a few lines of code is now over 3 minutes. I have no clue where the issue is, but this server just seems fairly slow in general. I do a lot of ECR, so having compilation take this long (even if I don't do a full clean it's a bit rough) kind of sucks. Is there a way of improving this? I don't know why I'd be seeing such a huge difference on the linode.

_________________
Take care,
Ty


Top
   
 Post subject: Re: slow compilations
PostPosted: Fri Dec 20, 2013 4:39 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Just curious, what advantages are there to compiling on a VPS instead of locally?

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
 Post subject: Re: slow compilations
PostPosted: Sat Dec 21, 2013 5:01 am 
Offline
Senior Member

Joined: Fri Jul 03, 2009 2:31 am
Posts: 54
ICQ: 897607
Filesystem can make a difference. If you are willing to experiment try making a small test partition with ReiserFS and see if that speeds up your compile (making sure you compile on the partition of course).

Also if, for some reason, you are re-compiling a lot of files that haven't changed you could see speedups with something like ccache. I don't think this wouldn't help in a normal development process if you're using 'make' etc. but bringing it up just in case.

Otherwise my guess would be that you don't have enough RAM and the system is swapping.


Top
   
 Post subject: Re: slow compilations
PostPosted: Sat Dec 21, 2013 8:16 pm 
Offline
Senior Newbie

Joined: Wed Sep 08, 2010 5:13 pm
Posts: 14
Website: http://tds-solutions.net
AOL: sorressean
Location: Massachusetts
Hello:
Thanks for the info. I've actually started using ccache, but it's taking insane amounts of time to compile individual files. I know for sure it's not the ram, so I'm not sure where the issue is.

Also, the bonus to compiling on the vps is that's where the mud will be running. If I compile in a vm on my own system I need to configure everything with 64-bit libraries just as it is on the Linode, otherwise shared linkage will not be portable. I just do all the work there rather than on a system here since I bounce between multiple boxes.

_________________
Take care,

Ty


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group