Mercurial > lbo > hg > rex
changeset 93:aef33867ba50
Run benchmarks in Travis CI
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Wed, 09 Dec 2020 22:57:54 +0100 |
parents | 175c6d68dcd1 |
children | 9782e6ccbfe5 |
files | .travis.yml src/optimize.rs src/state.rs |
diffstat | 3 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.travis.yml Wed Dec 09 22:48:06 2020 +0100 +++ b/.travis.yml Wed Dec 09 22:57:54 2020 +0100 @@ -19,6 +19,7 @@ script: - cargo build - cargo test + - cargo bench jobs: include:
--- a/src/optimize.rs Wed Dec 09 22:48:06 2020 +0100 +++ b/src/optimize.rs Wed Dec 09 22:57:54 2020 +0100 @@ -1,5 +1,7 @@ -/// optimize contains functionality for optimizing the representation of regular expressions for -/// more efficient matching. +//! optimize contains functionality for optimizing the representation of regular expressions for +//! more efficient matching. This means that the pattern is optimized before it being compiled to +//! the state machine. + use std::iter::{FromIterator, Iterator}; use std::ops::Deref;
--- a/src/state.rs Wed Dec 09 22:48:06 2020 +0100 +++ b/src/state.rs Wed Dec 09 22:57:54 2020 +0100 @@ -1,6 +1,7 @@ //! The state module defines the types used for building the so called states graph; a graph used -//! during interpretation of a regular expression. It is built from a (parsed) representation in -//! the repr module. +//! during interpretation of a regular expression (i.e., the state machine). It is built from a +//! (parsed) representation in the repr module. + #![allow(dead_code)] use std::collections::HashSet;