why MATLAB 2019b MEX file is slower
5 views (last 30 days)
I am testing performance comparison among R2017b and R2019b, and I have noticed that for most .m functions, it's becoming way much faster, but one noticable thing is that the time for mex file (calling multi-thread C) has been tripled, which is very werid.
I believe this could be caused by some overhead in C or mex side. But am still very curious why a better MATLAB can cause slow down
James Tursa on 24 Oct 2019
Edited: James Tursa on 24 Oct 2019
Impossible to say for sure without knowing what your mex function is doing. One thing to note is that in R2018a the storage format of complex variables changed from separate real & imag to interleaved real & imag. So passing complex variables may force a copy-in-copy-out behavior in one version but not the other. What is your mex function doing?