Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Significantly inflated executable size using later CGAL libraries

Subject: CGAL users discussion list

List archive

[cgal-discuss] Significantly inflated executable size using later CGAL libraries


Chronological Thread 
  • From: Qianqian Fang <>
  • To:
  • Subject: [cgal-discuss] Significantly inflated executable size using later CGAL libraries
  • Date: Mon, 7 Oct 2019 19:12:08 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:od5PihfmbPIJC0GNkYKt/eg/lGMj4u6mDksu8pMizoh2WeGdxcuzZR7h7PlgxGXEQZ/co6odzbaP6Oa9CSdZv96oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vIhi6twXcu8oZjYd/K6s61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzoBOjUk8m/Yl9ZwgbpFrhyhuhJxwIDab4+aO/Vica3QZs8aSGhbU8pNSyBMDIGxYo0SBOQBJ+ZYqIz9qkMVoxu/HwasAvrvyj5SiX/wwKY00/4uEQfJ3Ac9GN8Ovm7brNP6NKcLSOC416bIzTDZYPNX3Tfx8pTHchckofyVW797bMTfyU4qFwzfj1WQr5ToPymL2esQs2iU9fZgWfizhG4grgF9ujevxsYwionJm4Ia0UrI+jl+wIYwI9CzVU11Yca8HZdOqy2XM5F6T8AiTm1ypSo3y6EKtYSmcCUIypkr3wPTZ+KDfoSS/x7vSPydLSlmiH9qYr6yiRS//E69wePmTMa0ykxFri9dn9nMqH8N0xvT59CCSvRn/0eh3S+D1xnP6u1ZOEw0m7fXJpwjz7IqmZoTtkPDHiDymErolqOZakIk+u2w5+TmZLXpuIOcOpdqhg3iNqkigM+yDOQiPgQTXmWX5f6w2KDh8ED7WLlKi+c5kqjdsJDUP8Qboau5Dhdb0ok57Ra/AC6m0M0DkHkIKVJKYhOHj4zzN17SJ/D4CO+zg06wnzdz2/DGIrrhD43RIXjMirjhea9x5FNdyAoo0d9f+olUCqoaLfLoWk7xscTYAQUjPwy1xebnEtR92ZkEVWKBGK/KeJ/V5FSH7+ZqL+iXb5IOox78LeIk7rjglywXg1gYKJCo1J0OaXm+VtpvJUrRNXTlhNgYCE8FuwM/SKrhj1jUAm0bXGq7Q69pvmJzM4mhF4qWHtn80ozE5z+yG9htXk4DD1mNFXnycIDdAqUDbSuTJolqlTlWDOH8Gb9k7gmnsUrB85QiLufQ/XdG55fq1dww/vGK0B9rqmMyAMOa3GWACWpzmzFQHmNk7OVEuUV4j2y7/+1gmfUBTI5c4vpIVkExMpuOl+E=

hi everyone,

As some of you know, in my matlab meshing toolbox (iso2mesh), I embedded a few modified CGAL demo utilities. In the past, these utilities were statically compiled and distributed along with my toolbox. I saw there was a push to migrate to the newer CGAL releases (https://github.com/fangq/iso2mesh/issues/12#issuecomment-468601734), so last year, I had added the compilation scripts (https://github.com/fangq/iso2mesh/tree/master/tools) to compile these tools and link with the newer versions of CGAL, but noticed one problem: the binaries compiled/linked using the newer CGAL libraries (~4.10 or newer) are dramatically (5x to 10x) larger than the older libraries (3.8-4.2).

I got even more surprised as I started packaging iso2mesh for Fedora over the past few days

https://bugzilla.redhat.com/show_bug.cgi?id=1758626

the binaries generated on CGAL 4.14/Fedora 30 are even bigger than I've seen before - the 3D mesher code (cgalmesh) grows to 67MB compared to 4.5MB using CGAL 3.8 (15x), and mesh_polyhedral mesher (cgalpoly) example produced a 90 MB executable compared to 4.3 MB previously.

I am wondering if there is a way (a link/compile flag?) that I can reduce the binary size? loading a large executable is quite inefficient because disk reading is very slow compared to execution. I could use an exe packers, such as upx, to compress the exe by about 9-fold, but they are still several fold larger than what they used to be (after packing).

let me know if you have any suggestions, thanks

Qianqian




Archive powered by MHonArc 2.6.18.

Top of Page