Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Mata slow?


From   "Ben Jann" <[email protected]>
To   [email protected]
Subject   Re: st: Mata slow?
Date   Mon, 27 Nov 2006 16:21:44 +0100

Bill,
I guess it should be -n1- and -n2- in the -for- loops in you "final
version", not -length(s1)+1- and -length(s2)+1-.
A 49% reduction in run time still makes Mata 20 times slower than the
plugin. Can you explain to us where the performance gets lost?
ben
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index