Setting compiler optimisation to O3 instead of O2

Support and queries relating to all previous versions of ZoneMinder
Locked
unclerichy
Posts: 74
Joined: Wed Feb 25, 2004 5:06 pm

Setting compiler optimisation to O3 instead of O2

Post by unclerichy »

I did this a day or so ago by altering CCFLAGS and CXXFLAGS in Makefile and src\Makefile and have successfully recompiled zma, zmc, zmf, zms and zmu.

So far things look good - performance hasn't dropped and capture seems a little smoother with a lower CPU load.

Has anyone else attempted this?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Hi,

I think I've done this in the past when doing profiling but I don't have any hard evidence. It's certainly worth trying as I suspect that things like loop unrolling might have an effect. If you get any hard metrics please let us know.

Cheers,

Phil,
Locked