[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: sorting data puzzles
No doubt one very important factor is that -sort- is built-in
(compiled C) code, whereas -gsort- is ado-file code that repeatedly
calls -sort-. ado-file code is always going to be slower, and a look
at -gsort.ado- shows a number of calls to replace, compress, generate
under by-control, etc.
Kit
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
On Jan 26, 2008, at 2:33 AM, Sergiy wrote:
What exactly causes the difference in ascending/descending sorting
performance?
*
* 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/