Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: -findname- updated on SSC


From   daniel klein <klein.daniel.81@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -findname- updated on SSC
Date   Fri, 16 Mar 2012 09:08:10 +0100

If you do something, do it right. Change

program fg
	version 9
	findname `0'
end

which needs about 38-39 keyboard-hits (depending on whether ` is a
dead-key character) to be written, to

pr f
findname `0'
end

that only needs 21! -findname- will check the version for you. This
way you can save approximately 1/1000 ms each time from the moment you
use -f- instead of -findname- for the 22nd time. With the additional
17/1000 ms saved writing the program you will have plenty of time to
figure out an even faster solution. However, the problem with this
approach might be that -f- takes that 1/1000 ms saved typing to call
-findname-.

Best
Daniel
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index