I was looking for an excuse to compile something (I like watching my computer compile stuff) and decided to compile sagemath (I figured it would start up faster if I compiled it). Of course, I wanted to use
O3 (yes I know,
-O3 is not recommended). So I followed this thread and did this:
export CHOST="x86_64-pc-linux-gnu" export CPPFLAGS="-D_FORTIFY_SOURCE=2" export CFLAGS="-march=native -O3 -pipe -fno-plt" export CXXFLAGS="-march=native -O3 -pipe -fno-plt" export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" export MAKEFLAGS="-j6" export DEBUG_CFLAGS="-g -fvar-tracking-assignments" export DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" ./configure make
So, did it work? Because now I would say Sage is slightly slower than the binary version (maybe it’s because I used
Also before compiling sage I didn’t delete my existing .sage directory. Should I have done that or is that irrelevant compilation-wise?
Also anyone have any tips on how to make sage start up faster? That is my main gripe with the programme right now