|
From: Laurent N <lau...@gm...> - 2022-04-18 00:02:01
|
So the combination of -g0 and -O3 indeed does the trick. (-O3 alone doesn't, in case that helps). Thanks again Luigi On Tue, Apr 12, 2022 at 9:36 AM Laurent N <lau...@gm...> wrote: > Hi Luigi > > Many thanks, I'll give it a try with those parameters. > > On Tue, Apr 12, 2022 at 1:10 AM Luigi Ballabio <lui...@gm...> > wrote: > >> Also, I'm using those flags when building both the C++ library and the >> Python module. >> >> >> On Tue, Apr 12, 2022 at 10:07 AM Luigi Ballabio <lui...@gm...> >> wrote: >> >>> Hello Laurent, >>> try passing -g0 to gcc to avoid storing debug information. Also, >>> passing -O3 might try to optimize for size as well as speed. >>> >>> Hope this helps, >>> Luigi >>> >>> >>> On Tue, Apr 12, 2022 at 9:33 AM Laurent N <lau...@gm...> >>> wrote: >>> >>>> Hi, >>>> >>>> I wonder if you can share how you build the python library for linux. >>>> When i install the python addin via pip install, the .so file from the >>>> distribution is ~30Mo. >>>> >>>> However when I build it from scratch on centos 7, i am getting a file >>>> _QuantLib.cpython[xxx].so which is 130Mo+. I am trrying to reproduce what >>>> you did before i make some changes for my own use. I tried modifying the >>>> options passed to gcc, to no avail. >>>> >>>> I am using QuantLib 1.24 and QuantLib-SWIG 1.24 and python 3.7. >>>> >>>> Appreciate any help or pointers. >>>> >>>> Thanks >>>> Laurent >>>> _______________________________________________ >>>> QuantLib-users mailing list >>>> Qua...@li... >>>> https://lists.sourceforge.net/lists/listinfo/quantlib-users >>>> >>> |