]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commit
Do not allocate and free temporary matrices for every frame
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 11 Oct 2018 23:04:25 +0000 (01:04 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 11 Oct 2018 23:04:25 +0000 (01:04 +0200)
commit983a2c6bc3de732a4dcca9c5fc6e0eb33f2526c3
treec92c44928c71c1ae2212534636a233a84143b6bd
parent30d8c76bf336be98952d5ff16afb3356920f1640
Do not allocate and free temporary matrices for every frame

This speeds up the CUDA version, because pinned memory allocation is
implicit synchronization point. By allocating the variables only once,
we reduce the number of synchronization points.
src/kcf.cpp
src/kcf.h