MantisBT - VCMI
View Issue Details
0001858VCMIOtherpublic2014-07-23 20:072022-09-17 16:33
Mixaill 
Povelitel 
normalminorrandom
resolvedfixed 
x86_64Linux
0.96 
1.next 
0001858: Long compilation time on GCC
Sometimes compilation on Travis can last more than 50 minutes!

https://travis-ci.org/vcmi/vcmi/builds/30673739 [^]
https://travis-ci.org/vcmi/vcmi/builds/30216721 [^]
https://travis-ci.org/vcmi/vcmi/builds/30017056 [^]
1. Compile
2. Wait
No tags attached.
Issue History
2014-07-23 20:07MixaillNew Issue
2014-07-27 11:54IvanNote Added: 0004859
2014-12-24 20:16SXXNote Added: 0005270
2014-12-24 20:17SXXNote Edited: 0005270bug_revision_view_page.php?bugnote_id=5270#r2770
2022-09-17 16:33PovelitelNote Added: 0008354
2022-09-17 16:33PovelitelStatusnew => resolved
2022-09-17 16:33PovelitelFixed in Version => 1.next
2022-09-17 16:33PovelitelResolutionopen => fixed
2022-09-17 16:33PovelitelAssigned To => Povelitel

Notes
(0004859)
Ivan   
2014-07-27 11:54   
I guess most of this time was consumed on compilation of lib/registerTypes/* - they quite often need ~2 GB per file and in case of multithreaded compilation/low memory may cause huge slowdown due to swapping.

Frankly we have no idea what's causing this. So if you (or somebody else) will manage to fix this issue - this would be great.
(0005270)
SXX   
2014-12-24 20:16   
(edited on: 2014-12-24 20:17)
For anyone who might be interested.

@AVS made interesting improvement for serialization:
https://github.com/vcmi/vcmi/pull/66 [^]
For me this decreased compilation time from 4 minutes to 3 minutes.

(0008354)
Povelitel   
2022-09-17 16:33   
It is obvious that the problem was in the hardware associated with a lack of RAM.