It seems it would be quite easy to add a flag to the compiler option which would allow for CPU specific optimizations. The configure script from MPlayer (http://www.mplayerhq.hu/homepage/design6/dload.html) has a extensive check for CPU specific optimizations.
I've actually just edited the src/Makefile to add -O3 and -march=pentium3 to the CCOPT line. I don't know how to quantify the performance gain, but it sure "seems" faster (I know programmers just love "It seems faster" :)
Also, since I haven't looked through all the code, I'm not sure if -malign_double would cause problems or not. This flag historically gives the most performance gain.
Add processor optimization flags to Makefile
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Add processor optimization flags to Makefile
Hi,
I would be interested to see how much faster any of these optimisations go. I've used -O3 at various times and not noticed any difference.
Having said that the next version will be a lot quicker in most areas anyway but I'd be keen to hear any ideas for further improvements.
Phil,
I would be interested to see how much faster any of these optimisations go. I've used -O3 at various times and not noticed any difference.
Having said that the next version will be a lot quicker in most areas anyway but I'd be keen to hear any ideas for further improvements.
Phil,