Template extraction is an expensive operation. It generally takes around 300ms to extract a template on standard workstation. Database writes are fairly slow too (contrary to fast database reads). You can speed up the extractions on a multi-core system by running several extractions (several IEngine_AddFingerprint() methods) in parallel.