On Sun, Aug 24, 2014 at 8:09 PM, Kay C Lan <lan.kc.macm...@gmail.com> wrote:
> Not bringing much to the table other than to say that if you are > looking into large amounts of data, and need to do this millions of > time, and therefore speed is of interest, Peter's grep solution is > ever so slightly faster than Colin's. There isn't much in it and both > scale well. If you'd like to test, create a new stack, one button and > in the btn copy the below script which is one mouseUp handler and one > Function fRandomInRange. > Thanks for checking this out Kay. As you said, there's no practical difference between the two solutions but it's good to know that regex is pretty fast (at least in this case) since it tends to get a bad rap when it comes to performance. Pete lcSQL Software <http://www.lcsql.com> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html> _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode