SpecRegex  0.5.0
A GPU-accelerated regex library
sp::regex::RegexTuningParameters Struct Reference

Tuning parameters for (CPU) regex evaluation. More...

#include <RegexTuningParameters.hpp>

Static Public Member Functions

static constexpr int getPrefixFilterDepth ()
 Get the number of bytes for the prefix filter to process. More...
 

Detailed Description

Tuning parameters for (CPU) regex evaluation.

This struct contains the defaults for the tuning parameters. To override them, create a subclass of this class.

Warning
The members of this class are subject to change according to the needs to the regex engine.

Member Function Documentation

◆ getPrefixFilterDepth()

static constexpr int sp::regex::RegexTuningParameters::getPrefixFilterDepth ( )
staticconstexpr

Get the number of bytes for the prefix filter to process.

Prefix filtering can be disabled by returning 0.

Note
Although the prefix filter normally makes processing much faster, it does make regex evaluation theoretically O(n^2).