Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: -findname- updated on SSC


From   daniel klein <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index