If you think it works slow, make sure it is compiled with any of these instructions
> pdlib
>
> PDlib support => enabled
> Pdlib Version => 1.0.2
> DLIB_USE_CUDA => false
> DLIB_USE_BLAS => true
> DLIB_USE_LAPACK => true
> USE_AVX_INSTRUCTIONS => false
> USE_AVX2_INSTRUCTIONS => false
> USE_NEON_INSTRUCTIONS => false
> USE_SSE2_INSTRUCTIONS => true
> USE_SSE4_INSTRUCTIONS => false
This small optimization allows us to improve from:
OLD php: 0.012100038051605 Sec.
New native: 0.0096198790073395 Sec.
(This is already 20 percent faster)
..to:
OLD php: 0.012276937961578 Sec.
New native: 0.0022540950775146 Sec.
What is 80 percent faster than our PHP class.
It not use the 'length' native versions of dlib, due I have to convert the
array to the vector, which will take the same time, and then I will use the
native method.