mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 10:10:35 +03:00
allow some prefixes that may squash the literal match to run eagerly
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
|
||||
#define rose_inline really_inline
|
||||
|
||||
/* Maximum offset that we will eagerly run prefixes to. Beyond this point, eager
|
||||
* prefixes are always run in exactly the same way as normal prefixes. */
|
||||
#define EAGER_STOP_OFFSET 64
|
||||
|
||||
|
||||
static really_inline
|
||||
const void *getByOffset(const struct RoseEngine *t, u32 offset) {
|
||||
assert(offset < t->size);
|
||||
|
||||
Reference in New Issue
Block a user