Statalist


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

st: Re: sorting data puzzles


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Re: sorting data puzzles
Date   Sat, 26 Jan 2008 07:31:45 -0500

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/



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