I'm using the cvHaarDetectObjects C function to detect faces in my android application, but the execution time is not fast enough to process a certain number of video frames per second. So, I'm thinking of commenting out code that is unnecessary for me eg I've noticed a lot of branching conditions for the flags and memory allocation statements that can be commented out. The same thing can be done for the functions that are called from cvHaarDetectObjects.
Has anyone tried doing this sort of optimization before? Any help is much appreciated.
--