Starting with version 3.0 of the Corpus Workbench, CQP comes with a
built-in regular expression optimiser; this optimiser detects simple
regular expressions commonly used for prefix, suffix or infix searches such
as
> "under.+"; > ".+ment"; > ".+time.+";
and replaces the normal regexp evaluation with a highly efficient
Boyer-Moore search algorithm.
the optimiser will also recognise some slightly more complex regular
expressions; if you want to test whether a given expression can be
optimised or not, switch on debugging output with
> set CLDebug on;
Some beta releases of CQP may contain hidden optimisations and/or
other features that are disabled by default because they have not been tested
thoroughly; such hidden features will usually be documented in the release
notes and can be activated with the option
> set Optimize on;
The official LTS releases v3.0 and v3.5 of CQP have no hidden features.