






Hotspots: Admin Pages | Turn-in Site |
Current Links: Case Final Project Summer 2007
Code Rodeos
| Yeeee hawww! Saddle up fer some code totin' action. |  |
Code Rodeo I: KAYRAD members
We timed and sized the WordMatcher class from Milestone 1.
The code:
wm _ WordMatcher new.
wm addRule: 'Fail $foo ?bar ratchet ! #lookup'.
wm addRule: '&fort taste !good[:a | (a size) = 3] food'.
wm match: 'good taste foo food'.
myBlock _ [:matcher |
matcher addRule: 'Fail $foo ?bar ratchet ! #lookup'.
matcher addRule: '&fort taste !good[:a | (a size) = 3] food'.
1 to: 500 do:
[:index | matcher match: 'good taste foo food'. ]].
Time millisecondsToRun: [myBlock value: WordMatcher new].
The times:
Stephen- 8634 8685 8701 8635 8707
: I don't think this had as much to do with parsing as the way I handled blocks. I demand a retest w/o blocks!
Chris- 6993 7018 6998 7025 7015
Graham- 1858 1862 1874 1857 1939
The filesizes:
Stephen- under 9k
Chris- above 13k
Graham- above 11k
Code Rodeo 2
Want to hold another rodeo or challenge a player?
Leave info in the box below!
Well, partner adios.
Links to this Page
- Graham Coleman last edited on 11 February 2005 at 3:50 pm by testerb01.gtri.gatech.edu
- KAYRAD Team Page last edited on 5 November 2001 at 11:10 pm by zbt05.eastnet.gatech.edu