diff options
author | dfhoughton <dfhoughton@gmail.com> | 2019-09-15 18:40:00 -0400 |
---|---|---|
committer | dfhoughton <dfhoughton@gmail.com> | 2019-09-15 18:40:00 -0400 |
commit | 43c5248eb9285523ac712df7820a4b7205640776 (patch) | |
tree | 2cb873cbe256d7ece8bfe3aa811027ef02f2af24 /src/bin/using_grammar.rs | |
parent | f9ce85e4497669ceb235865dfe6daff9e3cf5729 (diff) | |
download | two-timer-43c5248eb9285523ac712df7820a4b7205640776.zip |
user serialized matcher to speed things up
Diffstat (limited to 'src/bin/using_grammar.rs')
-rw-r--r-- | src/bin/using_grammar.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/using_grammar.rs b/src/bin/using_grammar.rs new file mode 100644 index 0000000..a153d94 --- /dev/null +++ b/src/bin/using_grammar.rs @@ -0,0 +1,6 @@ +extern crate two_timer; + +// for timing the cost savings of using a serialized matcher +fn main() { + two_timer::GRAMMAR.matcher().unwrap().parse("yesterday"); +}
\ No newline at end of file |